Ask OpenStack: Q&A Site for OpenStack Users and Developers - Latest question feed and answers OpenStack CommunityenCopyright of the authors unless stated otherwiseFri, 13 May 2016 18:42:23 -0500SoftwareComponent example using Python SDK Hello, I want to write a functional python script that will utilize SoftwareComponent resource and demonstrate its functionality (e.g. using at least 2 lifecycle actions, maybe CREATE and UPDATE). I've thought of an example with installing MySQL server and creating a database within CREATE action, and maybe some kind of reconfiguration with database within UPDATE action (adding some new entries). Is it feasible? I've found Python binding webpage and python-heatclient API v1, but I can not see SoftwareComponent resource in there, I only noticed SoftwareConfig. Since I'm a novice at OpenStack, any help or advice is welcome and will be appreciated. Thank you in advance.Sam JayFri, 13 May 2016 18:42:23 -0500[python-openstacksdk] Create a new Keystone auth session with a profile. I am trying to execute the following python script: import sys import os from openstack import connection from openstack import profile from openstack import session prof = profile.Profile() prof.set_region(prof.ALL, "RegionOne") action = {'reboot': {'type': 'SOFT'}} auth_args = { 'auth_url': '', 'project_name': 'xxxxxx', 'username': 'xxxxxxx', 'password': 'xxxxxxx', 'profile': prof} conn = connection.Connection(**auth_args) sess = session.Session(profile=prof, user_agent=None) for server in conn.compute.servers(): if server.metadata: if server.status == "ACTIVE" and server.metadata['ENV'] == os.getenv('ENV'): server.action(session=sess, body=action) and I get the following error message: Traceback (most recent call last): File "E:\Temp\", line 32, in <module> server.action(session=sess, body=action) File "E:\Python\lib\site-packages\openstack\compute\v2\", line 92, in action url, endpoint_filter=self.service, json=body, headers=headers) File "E:\Python\lib\site-packages\keystoneauth1\", line 572, in post return self.request(url, 'POST', **kwargs) File "E:\Python\lib\site-packages\openstack\", line 65, in map_exceptions_wrapper raise exceptions.SDKException(message=e.message, cause=e) openstack.exceptions.SDKException: An authenticated request is required but no plugin available. I think that the script doesn't create a new session, right? Could someone give me a tip? Thank you in advance! StavrosWed, 30 Mar 2016 07:08:49 -0500