{"action":"created","issue":{"url":"https://api.github.com/repos/clustervision/trinity/issues/79","labels_url":"https://api.github.com/repos/clustervision/trinity/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/clustervision/trinity/issues/79/comments","events_url":"https://api.github.com/repos/clustervision/trinity/issues/79/events","html_url":"https://github.com/clustervision/trinity/issues/79","id":59087438,"number":79,"title":"OpenStack installer: instance cannot access metadata service","user":{"login":"abhimukh","id":8803654,"avatar_url":"https://avatars.githubusercontent.com/u/8803654?v=3","gravatar_id":"","url":"https://api.github.com/users/abhimukh","html_url":"https://github.com/abhimukh","followers_url":"https://api.github.com/users/abhimukh/followers","following_url":"https://api.github.com/users/abhimukh/following{/other_user}","gists_url":"https://api.github.com/users/abhimukh/gists{/gist_id}","starred_url":"https://api.github.com/users/abhimukh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhimukh/subscriptions","organizations_url":"https://api.github.com/users/abhimukh/orgs","repos_url":"https://api.github.com/users/abhimukh/repos","events_url":"https://api.github.com/users/abhimukh/events{/privacy}","received_events_url":"https://api.github.com/users/abhimukh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/clustervision/trinity/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"themisa","id":6388639,"avatar_url":"https://avatars.githubusercontent.com/u/6388639?v=3","gravatar_id":"","url":"https://api.github.com/users/themisa","html_url":"https://github.com/themisa","followers_url":"https://api.github.com/users/themisa/followers","following_url":"https://api.github.com/users/themisa/following{/other_user}","gists_url":"https://api.github.com/users/themisa/gists{/gist_id}","starred_url":"https://api.github.com/users/themisa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themisa/subscriptions","organizations_url":"https://api.github.com/users/themisa/orgs","repos_url":"https://api.github.com/users/themisa/repos","events_url":"https://api.github.com/users/themisa/events{/privacy}","received_events_url":"https://api.github.com/users/themisa/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-02-26T15:21:39Z","updated_at":"2015-03-17T13:56:25Z","closed_at":"2015-03-12T09:48:35Z","body":"**Software:**\r\n* r3\r\naa36e94\r\n\r\n**Component:**\r\ncv_install_openstack\r\n**Hardware:**\r\nnewmaster/controller02\r\n\r\n**Bug description:**\r\nInstances launched by nova (in this case from a centos image) cannot access the metadata server.\r\nThis results them in not being able to download the ssh keys. \r\n**Steps to reproduce:**\r\n - create ssh key-pair \r\n - add public key to the metadata server (via e.g., the dashboard )\r\n - launch instance\r\n - ssh to the instance with the corresponding private key (for the centos image the username is 'centos')\r\n \r\n**Expected output:**\r\nShould be able to ssh to the instance\r\n\r\n**Actual output:**\r\nNot able to ssh to the instance.\r\n\r\nOutput from the console-log of the instance\r\n\r\n[[32m  OK  [0m] Started OpenSSH server daemon.\r\ncloud-init[736]: 2015-02-26 12:14:44,290 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [0/120s]: bad status code [400]\r\n[[32m  OK  [0m] Started Postfix Mail Transport Agent.\r\ncloud-init[736]: 2015-02-26 12:14:45,295 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [1/120s]: bad status code [400]\r\n\r\nCentOS Linux 7 (Core)\r\nKernel 3.10.0-123.9.3.el7.x86_64 on an x86_64\r\n\r\ntest-centos-3 login: cloud-init[736]: 2015-02-26 12:14:46,300 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [2/120s]: bad status code [400]\r\ncloud-init[736]: 2015-02-26 12:14:47,304 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [3/120s]: bad status code [400]\r\ncloud-init[736]: 2015-02-26 12:14:48,308 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [4/120s]: bad status code [400]\r\n...\r\n\r\n***Additional Comment***\r\nThis problem seems to be fixed by commenting out the line \r\n\r\nservice_metadata_proxy=True\r\n\r\nin /etc/nova/nova.conf\r\n\r\nThe above line was added by cv_install_openstack\r\n\r\nsed -i \"s/^#\\?service_metadata_proxy=.*/service_metadata_proxy=True/g\" /etc/nova/nova.conf\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/clustervision/trinity/issues/comments/82364869","html_url":"https://github.com/clustervision/trinity/issues/79#issuecomment-82364869","issue_url":"https://api.github.com/repos/clustervision/trinity/issues/79","id":82364869,"user":{"login":"themisa","id":6388639,"avatar_url":"https://avatars.githubusercontent.com/u/6388639?v=3","gravatar_id":"","url":"https://api.github.com/users/themisa","html_url":"https://github.com/themisa","followers_url":"https://api.github.com/users/themisa/followers","following_url":"https://api.github.com/users/themisa/following{/other_user}","gists_url":"https://api.github.com/users/themisa/gists{/gist_id}","starred_url":"https://api.github.com/users/themisa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themisa/subscriptions","organizations_url":"https://api.github.com/users/themisa/orgs","repos_url":"https://api.github.com/users/themisa/repos","events_url":"https://api.github.com/users/themisa/events{/privacy}","received_events_url":"https://api.github.com/users/themisa/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T13:56:25Z","updated_at":"2015-03-17T13:56:25Z","body":"needs a nova restart for changes to config file to take effect."}}