Hi again,
So I have done some heavy debugging. And I have found that login process is slightly different between Packer and Python Based Openstack Client.
{"auth":{"identity":{"methods":["password"],"password":{"user":{"domain":{"name":"soc"},"name":"myname","password”:”……”}}},”scope":{"project":{"domain":{"name":"soc"},"name":"soc"}}}}HTTP/1.1 401 UNAUTHORIZED <<<<<< PACKER
{"auth": {"scope": {"project": {"domain": {"name": "soc"}, "name": "mcafee-siem"}}, "identity": {"password": {"user": {"domain": {"name": "soc"}, "password": “….”, "name": "myname"}}, "methods": ["password"]}}}HTTP/1.1 201 CREATED <<<<<<< python based openstack client
If you look carefully on scope>project>name you can see that in Packer, 2 times 'soc' is used, in python client is used 'mcafee-siem' instead. I am almost sure that this is the problem. A way how to confirm it is to intercept the request and try to change the value. I will do that now, but anyway, I am almost sure this is the hitch.
Do you have any idea how to change it? This is my current openrc.sh setting.
export OS_PROJECT_NAME=mcafee-siem
export OS_USER_DOMAIN_NAME=soc
export OS_PROJECT_DOMAIN_NAME=soc
export OS_TENANT_NAME=soc
But in Packer I cannot change project name, in the docummentation is written that PROJECT_NAME is same as TENANT_NAME or similar.
From documentation: This will authenticate the user on the domain and scope you to the project.
A tenant is the same as a project. ....
OS_TENANT_NAME or
OS_TENANT_ID must be used even with Identity v3,
OS_PROJECT_NAME and
OS_PROJECT_ID has no effect in Packer.
Well, it actually has effect this time.... Do you have any clue how to fix it? Beside intercepting every request?
Dne pátek 24. března 2017 11:27:41 UTC+2 Rickard von Essen napsal(a):