os_collect_config.cfn [-] 403 Client Error: AccessDenied

asked 2015-11-12 01:17:54 -0500

liubingchuan8 gravatar image

Hi,

I used the OS::Heat::SoftwareConfig and OS::Heat::SoftwareDeployment two resources in Kilo heat, and when my os-colloct-config try to fetch metadata from metadata_url http://<heat-engine-ip>:8000/v1/, it always feedback the 403 Response. And I used the POLL_SERVER_CFN as the default value of software_config_transport.

I debugged the execution process in os-collect-config and focused on the cfn collector,

139 import pdb; pdb.set_trace() 140 for collector in collectors: 141 module = COLLECTORS[collector] 142 -> if collector_kwargs_map and collector in collector_kwargs_map: 143 collector_kwargs = collector_kwargs_map[collector] 144 else: 145 collector_kwargs = {} 146
147 try: (Pdb) p module <module 'os_collect_config.cfn'="" from="" '="" opt="" stack="" venvs="" os-collect-config="" lib="" python2.6="" site-packages="" os_collect_config="" cfn.pyc'="">

147 try: 148 -> content = module.Collector(**collector_kwargs).collect() 149 except exc.SourceNotAvailable: 150 logger.warn('Source [%s] Unavailable.' % collector) 151 continue 152 except exc.SourceNotConfigured: 153 logger.debug('Source [%s] Not configured.' % collector) (Pdb) n 2015-11-12 07:01:17.077 13746 WARNING os_collect_config.cfn [-] 403 Client Error: AccessDenied CfnMetadataNotAvailable: CfnMetad...ailable()

And here is my configuration of /etc/os-collect-config.conf

[DEFAULT] command = os-refresh-config

[cfn] metadata_url = http://<heat-engine-ip>:8000/v1/ stack_name = XXXX secret_access_key = a4e33bXXXXXXXXXXXXXXXXX1590 access_key_id = ad7ddcXXXXXXXXXXXXXXXXXXXXXx510a9a path = server.Metadata

any help will be appreciated!

edit retag flag offensive close merge delete