{"action":"created","issue":{"url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin/issues/737","repository_url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin","labels_url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin/issues/737/labels{/name}","comments_url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin/issues/737/comments","events_url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin/issues/737/events","html_url":"https://github.com/CentOS-PaaS-SIG/linchpin/issues/737","id":371019442,"node_id":"MDU6SXNzdWUzNzEwMTk0NDI=","number":737,"title":"change in instance name for openstack with linchpin 1.6.3","user":{"login":"bhavikbhavsar","id":4545441,"node_id":"MDQ6VXNlcjQ1NDU0NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/4545441?v=4","gravatar_id":"","url":"https://api.github.com/users/bhavikbhavsar","html_url":"https://github.com/bhavikbhavsar","followers_url":"https://api.github.com/users/bhavikbhavsar/followers","following_url":"https://api.github.com/users/bhavikbhavsar/following{/other_user}","gists_url":"https://api.github.com/users/bhavikbhavsar/gists{/gist_id}","starred_url":"https://api.github.com/users/bhavikbhavsar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhavikbhavsar/subscriptions","organizations_url":"https://api.github.com/users/bhavikbhavsar/orgs","repos_url":"https://api.github.com/users/bhavikbhavsar/repos","events_url":"https://api.github.com/users/bhavikbhavsar/events{/privacy}","received_events_url":"https://api.github.com/users/bhavikbhavsar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-17T11:09:06Z","updated_at":"2018-10-17T13:00:39Z","closed_at":null,"author_association":"NONE","body":"\r\nIn linchpin version 1.0.4 that we were using,\r\nthe openstack instance name would form based on below tasks in provision_os_server.yml\r\n\r\n```\r\n- name: \"provisioning os_server resources\"\r\n  os_server2:\r\n    state: \"{{ state }}\"\r\n    name: \"{{ res_grp_name }}_{{ res_def['res_name'] | default(res_def['name']) }}\"\r\n```\r\n\r\nThis seems to have changed in latest version 1.6.3\r\n\r\n```\r\n name: \"provision/teardown os_server resources with provided auth\"\r\n  os_server:\r\n    state: \"{{ state }}\"\r\n    auth: \"{{ auth_var }}\"\r\n    name: \"{{ prov_inst }}\"\r\n\r\n```\r\nSo now when instance is provisioned with latest version 1.6.3\r\n\r\nFor topo file as below:\r\n\r\n```\r\nresource_groups:\r\n- credentials:\r\n    filename: clouds.yaml\r\n    profile: devstack\r\n  resource_definitions:\r\n  - count: 1\r\n    fip_pool: 10.8.240.0\r\n    flavor: m1.large\r\n    image: rhel-7.5\r\n    keypair: idm-jenkins\r\n    name: master\r\n    networks:\r\n    - idm-jenkins\r\n    type: os_server\r\n  resource_group_name: linchpin_768\r\n  resource_group_type: openstack\r\ntopology_name: openstack_topo\r\n```\r\nThe instance name it assigns is `master1`  which was before `linchpin_768_master1`.\r\n\r\nIs there any specific reason for this change?\r\n\r\nMy use case:\r\nI had an working automation for my ci to provision instances with different name each time it runs `linchpin up` to automatically append 3 digit random number to the resource_group_name.\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin/issues/comments/430618391","html_url":"https://github.com/CentOS-PaaS-SIG/linchpin/issues/737#issuecomment-430618391","issue_url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin/issues/737","id":430618391,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDYxODM5MQ==","user":{"login":"samvarankashyap","id":5724499,"node_id":"MDQ6VXNlcjU3MjQ0OTk=","avatar_url":"https://avatars2.githubusercontent.com/u/5724499?v=4","gravatar_id":"","url":"https://api.github.com/users/samvarankashyap","html_url":"https://github.com/samvarankashyap","followers_url":"https://api.github.com/users/samvarankashyap/followers","following_url":"https://api.github.com/users/samvarankashyap/following{/other_user}","gists_url":"https://api.github.com/users/samvarankashyap/gists{/gist_id}","starred_url":"https://api.github.com/users/samvarankashyap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samvarankashyap/subscriptions","organizations_url":"https://api.github.com/users/samvarankashyap/orgs","repos_url":"https://api.github.com/users/samvarankashyap/repos","events_url":"https://api.github.com/users/samvarankashyap/events{/privacy}","received_events_url":"https://api.github.com/users/samvarankashyap/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T13:00:39Z","updated_at":"2018-10-17T13:00:39Z","author_association":"COLLABORATOR","body":"@bhavikbhavsar @herlo : By default linchpin generates unique id for resources . However, I believe there is a option in linchpin.conf to disable unique id generation . \r\n@herlo : I was checking the linchpin.conf in examples workspace I could not find the option . Do you know where the option is ? "}}
{"actor":{"display_login":"samvarankashyap"}}