Um, the problem might be that the method looks for local storage and I see none in your sr-list!
From: Josh Kearney [mailto:josh.kear...@rackspace.com] Sent: 03 December 2010 18:06 To: Armando Migliaccio Cc: Ewan Mellor; openstack-xenapi@lists.launchpad.net Subject: Re: [Openstack-xenapi] XenServer ObjectStore Authentication No problem, here you go: http://paste.openstack.org/show/230/ On Fri, Dec 3, 2010 at 12:03 PM, Armando Migliaccio <armando.migliac...@eu.citrix.com<mailto:armando.migliac...@eu.citrix.com>> wrote: That's pretty bizarre! By the look of it, it seems that the objectstore plugin fails in this method: def find_sr(session): host = get_this_host(session) srs = session.xenapi.SR.get_all() for sr in srs: sr_rec = session.xenapi.SR.get_record(sr) if not ('i18n-key' in sr_rec['other_config'] and sr_rec['other_config']['i18n-key'] == 'local-storage'): continue for pbd in sr_rec['PBDs']: pbd_rec = session.xenapi.PBD.get_record(pbd) if pbd_rec['host'] == host: return sr return None I know, it may sound silly, but can you check the output of the command 'xe sr-list' on the XS root console? From: Josh Kearney [mailto:josh.kear...@rackspace.com<mailto:josh.kear...@rackspace.com>] Sent: 03 December 2010 17:55 To: Armando Migliaccio Cc: Ewan Mellor; openstack-xenapi@lists.launchpad.net<mailto:openstack-xenapi@lists.launchpad.net> Subject: Re: [Openstack-xenapi] XenServer ObjectStore Authentication Doh! That was pretty stupid on my part. I changed it to the correct IP, but we're still getting the same exception: http://paste.openstack.org/show/229/ I've also verified that the XenServer is able to reach the IP:Port. On Fri, Dec 3, 2010 at 11:46 AM, Armando Migliaccio <armando.migliac...@eu.citrix.com<mailto:armando.migliac...@eu.citrix.com>> wrote: >From this line: DEBUG:root:Asking xapi to fetch http://127.0.0.1:3333/_images/ami-zwie7o5o/image as 1e789aaa-7798-46b6-aa41-8a1ff0d1a028:jkearney It looks like that the your --s3_host flag either has not been passed or is wrong. Make sure it reflects an IP address that XS can reach. From: Josh Kearney [mailto:josh.kear...@rackspace.com<mailto:josh.kear...@rackspace.com>] Sent: 03 December 2010 17:44 To: Ewan Mellor Cc: Armando Migliaccio; openstack-xenapi@lists.launchpad.net<mailto:openstack-xenapi@lists.launchpad.net> Subject: Re: [Openstack-xenapi] XenServer ObjectStore Authentication Thanks Armando - now we're seeing this error from the plugin: http://paste.openstack.org/show/228/ I wonder if this could be a misconfiguration error on our part, or is this an actual problem with the plugin? On Fri, Dec 3, 2010 at 11:38 AM, Ewan Mellor <ewan.mel...@eu.citrix.com<mailto:ewan.mel...@eu.citrix.com>> wrote: We're using nova-objectstore for now. Wu is working on Glance integration under https://blueprints.launchpad.net/nova/+spec/bexar-xenapi-support-for-glance, so we won't be using objectstore for much longer. Ewan. From: openstack-xenapi-bounces+ewan.mellor=citrix.com<http://citrix.com>@lists.launchpad.net<http://lists.launchpad.net> [mailto:openstack-xenapi-bounces+ewan.mellor<mailto:openstack-xenapi-bounces%2Bewan.mellor>=citrix.com<http://citrix.com>@lists.launchpad.net<http://lists.launchpad.net>] On Behalf Of Josh Kearney Sent: 03 December 2010 16:37 To: Armando Migliaccio Cc: openstack-xenapi@lists.launchpad.net<mailto:openstack-xenapi@lists.launchpad.net> Subject: Re: [Openstack-xenapi] XenServer ObjectStore Authentication We are running your XenServer objectstore plugin (on dom0) so I've been setting that to the IP of the XenServer. Is that correct? We shouldn't even need nova-objectstore if I understand correctly? On Fri, Dec 3, 2010 at 10:34 AM, Armando Migliaccio <armando.migliac...@eu.citrix.com<mailto:armando.migliac...@eu.citrix.com>> wrote: --s3_host must the address of the node running the objectstore From: openstack-xenapi-bounces+armando.migliaccio=eu.citrix.com<http://eu.citrix.com>@lists.launchpad.net<http://lists.launchpad.net> [mailto:openstack-xenapi-bounces+armando.migliaccio<mailto:openstack-xenapi-bounces%2Barmando.migliaccio>=eu.citrix.com<http://eu.citrix.com>@lists.launchpad.net<http://lists.launchpad.net>] On Behalf Of Josh Kearney Sent: 03 December 2010 15:52 To: openstack-xenapi@lists.launchpad.net<mailto:openstack-xenapi@lists.launchpad.net> Subject: [Openstack-xenapi] XenServer ObjectStore Authentication Hey Citrix guys, After setting up the XenServer ObjectStore plugin on the XenServer host (and of course chmodding it) is there anything else that needs to be done? When I try uploading an image from the compute node, I'm getting 403 errors back from the XenServer. It seems like the XenAPI auth creds are being completely ignored when pointing to the XenServer ObjectStore. Here is my flagfile: --verbose --nodaemon --sql_connection=mysql://root:n...@127.0.0.1/nova<http://root:n...@127.0.0.1/nova> --s3_host=<your XenServer IP> --s3_port=80 --network_manager=nova.network.manager.FlatManager --flat_network_bridge=xenbr0 --connection_type=xenapi --xenapi_connection_url=https://<your XenServer IP> --xenapi_connection_username=username --xenapi_connection_password=password Are those the correct S3 settings when using this XenServer plugin? And is it possible that I could be missing an extra step somewhere? Many thanks, -jk0
_______________________________________________ Mailing list: https://launchpad.net/~openstack-xenapi Post to : openstack-xenapi@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack-xenapi More help : https://help.launchpad.net/ListHelp