Questions & Answers

Cation create stack failed at step [deploy_package]: CREATE_IN_PROGRESS state changed

0 votes
asked Aug 11, 2017 by korlepara21 (120 points)
Hi,

I am using openstack(newton) with pnda and have configured everything as mention in pnda.io guide. The heat_cli.py failed as below error. I have already looked through various forums where its mentioned that swift authorization might be the problem but have tried them and looks like swift authorization doesnt have any issue as "swift list" or "swift stat" works fine.

Can someone help me out to fix this issue.

Create_Failed: Resource CREATE failed: RemoteError: resources.deploy_package: Remote error: ClientException Object HEAD failed: http://172.23.152.101:8080/v1/AUTH_ea7d49d8881e4e4aa3e4a0c8c297e4ff/e3fa9df1-14ba-4424-9f99-bce99fd7d42f/cation-deploy_package-efjbknxllken 401 Unauthorized [u'Traceback (most recent call last):\n', u' File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 133, in _process_incoming\n res = self.dispatcher.dispatch(message)\n', u' File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 150, in dispatch\n return self._do_dispatch(endpoint, method, ctxt, args)\n', u' File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 121, in _do_dispatch\n result = func(ctxt, **new_args)\n', u' File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 154, in wrapper\n return f(*args, **kwargs)\n', u' File "/opt/stack/heat/heat/common/context.py", line 424, in wrapped\n return func(self, ctx, *args, **kwargs)\n', u' File "/opt/stack/heat/heat/engine/service.py", line 2216, in show_software_deployment\n cnxt, deployment_id)\n', u' File "/opt/stack/heat/heat/engine/service_software_config.py", line 240, in show_software_deployment\n sd = self._show_software_deployment(cnxt, deployment_id)\n', u' File "/opt/stack/heat/heat/engine/service_software_config.py", line 233, in _show_software_deployment\n cnxt, sd, input_values.get(\'deploy_signal_id\'))\n', u' File "/opt/stack/heat/heat/engine/service_software_config.py", line 137, in _refresh_swift_software_deployment\n headers = swift.head_object(container, object_name)\n', u' File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 1744, in head_object\n return self._retry(None, head_object, container, obj, headers=headers)\n', u' File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 1647, in _retry\n service_token=self.service_token, **kwargs)\n', u' File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 1186, in head_object\n raise ClientException.from_response(resp, \'Object HEAD failed\', body)\n', u'ClientException: Object HEAD failed: http://172.23.152.101:8080/v1/AUTH_ea7d49d8881e4e4aa3e4a0c8c297e4ff/e3fa9df1-14ba-4424-9f99-bce99fd7d42f/cation-deploy_package-efjbknxllken 401 Unauthorized\n'].

1 Answer

+1 vote
answered Aug 19, 2017 by Saqib Arfeen (560 points)

Hello Korlepara
We also faced this issue earlier. Here is how to solve this

1) Extend keystone token expiry time , it is done by:
    i) Modify /etc/keystone/keystone.conf ,  change expiration = 86400 (any large period of time in seconds)
    ii) Restart httpd/apache as keystone runs on it.
Then try to deploy pnda again. If the same error appears then continue to solution#2 below:-

2) Enable "tempurl" in swift pipeline .(I donot exacly remember but here is roughly how to do it ):
    i) Modify /etc/swift/proxy-server.conf and change its pipeline to include tempurl :  pipeline = catch_errors bulk healthcheck cache crossdomain ratelimit authtoken keystone formpost staticweb tempurl slo account-quotas container-quotas versioned_writes proxy-logging proxy-server
    ii) Modify /etc/swift/proxy-server.conf , add/edit [filter:tempurl] heading as: 
       [filter:tempurl]
       use = egg:swift#tempurl

Here is my /etc/swift/proxy-server.conf for reference : https://pastebin.com/T5MVVFuZ

Here you go.Hope this helps!
Saqib

commented Nov 6, 2017 by nsaraiva (120 points)
Hello @Saqib,

I tried to deploy pnda using the solution #1), but I received other error:

 CREATE_FAILED  CREATE aborted (Task create from SoftwareDeployment "deploy_package" Stack "panda" [6488f856-8c78-4ee7-9ad1-69b2ade0db30] Timed out)
2017-11-06 21:17:54Z [panda]: CREATE_FAILED  Timed out

I also checked the proxy-server.conf file. It's ok.

Do you another suggestion?
...