Hi, I am a new Magnum user and was trying to create a launch a container via magnum but am facing some issues.
1. I am following this link to getting started with magnum. https://github.com/openstack/magnum/blob/master/doc/source/dev/dev-quickstart.rst 2. I am using devstack to run magnum. Following is my localrc. ENABLED_SERVICES=h-eng,h-api,h-api-cfn,h-api-cw,g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-sch, n-cauth,horizon,mysql,rabbit,sysstat,quantum,q-svc,n-novnc,n-xvnc,q-dhcp,cinder,c-api,c-vol,c-sch,c-bak DATABASE_PASSWORD=password RABBIT_PASSWORD=password SERVICE_TOKEN=password SERVICE_PASSWORD=password ADMIN_PASSWORD=password #Magnum settings PUBLIC_INTERFACE=eth0 enable_plugin magnum https://github.com/openstack/magnum VOLUME_BACKING_FILE_SIZE=20G So I am running the code from the master branch. Now, I was able to create the bay-model successfully. But when I try to create a bay it gets stuck in CREATE_IN_PROGRESS for about an hour and then fails (CREATE_FAILED) gangil@ubuntu:~/devstack$ magnum bay-list +--------------------------------------+--------+------------+--------------------+ | uuid | name | node_count | status | +--------------------------------------+--------+------------+--------------------+ | cbad5a8e-357f-4d8c-a211-5bbda7339c1c | k8sbay | 1 | CREATE_IN_PROGRESS | +--------------------------------------+--------+------------+--------------------+ On checking the logs, 1. I see the following WARNING in n-cpu service. 2015-07-17 13:27:03.135 *WARNING nova.conductor.api [**req-02a216a7-b559-4410-aa89-4be0e9ae498b *None None*] Timed out waiting for nova-conductor. Is it running? Or did this service start before nova-conductor? Reattempting establishment of nova-conductor connection...* 2. And the a WARNING in m-cond service 2015-07-17 13:50:43.092 *WARNING magnum.service.periodic [**req-0d50279e-9e4f-4403-bdf4-8637f1ac191c *None None*] Ignore error [ERROR: You are not authorized to complete this action.] when syncing up bay status.* *2015-07-17 13:50:43.092 TRACE magnum.service.periodic *Traceback (most recent call last): *2015-07-17 13:50:43.092 TRACE magnum.service.periodic * File "/opt/stack/magnum/magnum/service/periodic.py", line 66, in sync_bay_status *2015-07-17 13:50:43.092 TRACE magnum.service.periodic * sid_to_stack_mapping = {s.id: s for s in stacks} *2015-07-17 13:50:43.092 TRACE magnum.service.periodic * File "/opt/stack/magnum/magnum/service/periodic.py", line 66, in <dictcomp> *2015-07-17 13:50:43.092 TRACE magnum.service.periodic * sid_to_stack_mapping = {s.id: s for s in stacks} *2015-07-17 13:50:43.092 TRACE magnum.service.periodic * File "/usr/local/lib/python2.7/dist-packages/heatclient/v1/stacks.py", line 100, in paginate *2015-07-17 13:50:43.092 TRACE magnum.service.periodic * stacks = self._list(url, 'stacks') *2015-07-17 13:50:43.092 TRACE magnum.service.periodic * File "/usr/local/lib/python2.7/dist-packages/heatclient/openstack/common/apiclient/base.py", line 131, in _list *2015-07-17 13:50:43.092 TRACE magnum.service.periodic * body = self.client.get(url).json() *2015-07-17 13:50:43.092 TRACE magnum.service.periodic * File "/usr/local/lib/python2.7/dist-packages/heatclient/common/http.py", line 291, in get *2015-07-17 13:50:43.092 TRACE magnum.service.periodic * return self.client_request("GET", url, **kwargs) *2015-07-17 13:50:43.092 TRACE magnum.service.periodic * File "/usr/local/lib/python2.7/dist-packages/heatclient/common/http.py", line 284, in client_request *2015-07-17 13:50:43.092 TRACE magnum.service.periodic * resp, body = self.json_request(method, url, **kwargs) *2015-07-17 13:50:43.092 TRACE magnum.service.periodic * File "/usr/local/lib/python2.7/dist-packages/heatclient/common/http.py", line 265, in json_request *2015-07-17 13:50:43.092 TRACE magnum.service.periodic * resp = self._http_request(url, method, **kwargs) *2015-07-17 13:50:43.092 TRACE magnum.service.periodic * File "/usr/local/lib/python2.7/dist-packages/heatclient/common/http.py", line 220, in _http_request *2015-07-17 13:50:43.092 TRACE magnum.service.periodic * raise exc.from_response(resp) *2015-07-17 13:50:43.092 TRACE magnum.service.periodic *HTTPForbidden: ERROR: You are not authorized to complete this action. *2015-07-17 13:50:43.092 TRACE magnum.service.periodic * After some help on the irc at #openstack-containers, someone suggested to edit the heat's policy.json file and change "stacks:global_index": "rule:deny_everybody", to "stacks:global_index": "role:admin" and restart the magnum and heat services and retrying everything. But the problem persisted even then. Could anyone please help me in debugging this issue? I just want to launch a container. Thanks! -- Akash
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : [email protected] Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
