----- Original Message -----
From: "James Labocki" <jlabocki(a)redhat.com>
To: "Pete Zaitcev" <zaitcev(a)redhat.com>
Cc: aeolus-devel(a)lists.fedorahosted.org, imcleod(a)redhat.com, "Jim Meyering"
<jim(a)meyering.net>, "Steve Loranz"
<sloranz(a)redhat.com>
Sent: Friday, July 29, 2011 9:37:43 AM
Subject: Re: aeolus-image push curl failed
----- Original Message -----
> From: "Pete Zaitcev" <zaitcev(a)redhat.com>
> To: "James Labocki" <jlabocki(a)redhat.com>
> Cc: aeolus-devel(a)lists.fedorahosted.org, imcleod(a)redhat.com, "Jim
> Meyering" <jim(a)meyering.net>, "Steve Loranz"
> <sloranz(a)redhat.com>
> Sent: Thursday, July 28, 2011 9:26:17 PM
> Subject: Re: aeolus-image push curl failed
> On Thu, 28 Jul 2011 20:22:38 -0400 (EDT)
> James Labocki <jlabocki(a)redhat.com> wrote:
>
> > > > This message, "failed ERROR curl failed GET url
> > > >
`https://rhevm.cloud.redhat.com:8543/rhevm-api-powershell/'"
> > > > is
> > > > coming from iwhd but I cannot make out what the problem is.
> > >
> > > James did exactly the right thing in the circumstances: tried
> > > the
> > > URL.
> > > But he did not go far enough. Next step is to copy credentials
> > > from
>
> > [root@cldmgr01 ~]# curl -u rhevadmin@cloud.redhat.com:password
> >
https://fqdn:8543/rhevm-api-powershell/
> > <?xml version="1.0" encoding="UTF-8"
standalone="yes"?>
> > <api>
> > <link rel="capabilities"
> > href="/rhevm-api-powershell/capabilities"/>
> > <link rel="clusters"
href="/rhevm-api-powershell/clusters"/>
> > <link rel="clusters/search"
> > href="/rhevm-api-powershell/clusters?search={query}"/>
> > .... etc etc
>
> This is good.
>
> So, how does the Conductor know the parameters? I remember there was
> some sort of configuration file for it. Where did you enter the
> credentials and the URL that you used for the above test?
In /etc/aeolus-configure/nodes/default_configure I entered the
following stanzas to enable rhevm support, including
rhevm_deltacloud_password which contains the correct password (same on
I tested in curl)
rhevm_nfs_server:
nfsvm.cloud.redhat.com
rhevm_nfs_export: /exportdomain
rhevm_nfs_mount_point: /mnt/rhevm-nfs
rhevm_deltacloud_port: 3005
rhevm_deltacloud_username: deltacloud(a)cloud.redhat.com
rhevm_deltacloud_password: Password
rhevm_deltacloud_powershell_url:
https://fqdn:8543/rhevm-api-powershell
the /exportdomain is mounted successfull on /mnt/rhevm-nfs when
`aeolus-configure` is run and the user can write to the directory.
FWIW, here is a listing of the image I am trying to push
# aeolus-image list --images
IMAGE ID LASTEST PUSHED BUILD NAME TARGET OS
OS VERSION ARCH DESCRIPTION
e4c702a2-ee72-4c08-8117-20f68d28c2b8 tmpl1 rhevm
Fedora 14 x86_64 Fedora 14 Template
Also, here is the full imagefactory.log output that results from `aeolus-image push
--provider rhevm --id e4c702a2-ee72-4c08-8117-20f68d28c2b8`
2011-07-29 09:41:15,291 DEBUG imagefactory.qmfagent.ImageFactoryAgent.ImageFactoryAgent
pid(8044) Message: Method called: name = push_image
args = {'credentials': '*** REDACTED ***', 'image':
'e4c702a2-ee72-4c08-8117-20f68d28c2b8', 'build': '',
'providers': ['rhevm']}
handle = <cqmf2.AgentEvent; proxy of <Swig Object of type 'qmf::AgentEvent
*' at 0x1e139c0> >
addr = redhat.com:imagefactory:1a87b75d-83f8-46c0-8249-a6af72e6ac11:image_factory
subtypes = {}
userId = anonymous
2011-07-29 09:41:15,293 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(8044)
Message: Getting metadata (['latest_unpushed']) from
http://localhost:9090/images/e4c702a2-ee72-4c08-8117-20f68d28c2b8
2011-07-29 09:41:15,295 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(8044)
Message: Querying (
http://localhost:9090/target_images/_query) with expression ($build ==
"12369482-95cb-4119-a69e-b516276e422f" && $target == "rhevm")
2011-07-29 09:41:15,297 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(8044)
Message: Getting metadata (['template']) from
http://localhost:9090/target_images/35d99e8c-6a7e-40e6-9c24-d7c931b8332f
2011-07-29 09:41:15,298 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(8044)
Message: Created Image Warehouse instance
http://localhost:9090 - buckets(target_images,
templates, icicles, provider_images)
2011-07-29 09:41:15,301 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(8044)
Message: Created Image Warehouse instance
http://localhost:9090 - buckets(target_images,
templates, icicles, provider_images)
2011-07-29 09:41:15,304 DEBUG imagefactory.BuildJob.BuildAdaptor pid(8044) Message:
Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed
status from NEW to PUSHING
2011-07-29 09:41:15,304 DEBUG imagefactory.BuildJob.BuildAdaptor pid(8044) Message:
Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed
percent complete from 0 to 0
2011-07-29 09:41:15,479 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(8044)
Message: Exception caught in ImageFactory
2011-07-29 09:41:15,479 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(8044)
Message: Traceback (most recent call last):
File
"/usr/lib/python2.6/site-packages/imagefactory/builders/FedoraBuilder.py", line
1006, in push_image_upload
self.rhevm_push_image_upload(target_image_id, provider, credentials)
File
"/usr/lib/python2.6/site-packages/imagefactory/builders/FedoraBuilder.py", line
981, in rhevm_push_image_upload
raise ImageFactoryException("Failed to extract RHEV-M UUID from warehouse POST
reponse: %s" % (response))
ImageFactoryException: Failed to extract RHEV-M UUID from warehouse POST reponse: failed
ERROR curl failed GET url `https://rhevm.cloud.redhat.com:8543/rhevm-api-powershell/'
2011-07-29 09:41:15,480 DEBUG imagefactory.BuildJob.BuildAdaptor pid(8044) Message:
Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed
status from PUSHING to FAILED
2011-07-29 09:41:15,480 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(8044)
Message: Exception caught in ImageFactory
2011-07-29 09:41:15,480 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(8044)
Message: Traceback (most recent call last):
File
"/usr/lib/python2.6/site-packages/imagefactory/builders/FedoraBuilder.py", line
496, in push_image
self.push_image_upload(target_image_id, provider, credentials)
File
"/usr/lib/python2.6/site-packages/imagefactory/builders/FedoraBuilder.py", line
1006, in push_image_upload
self.rhevm_push_image_upload(target_image_id, provider, credentials)
File
"/usr/lib/python2.6/site-packages/imagefactory/builders/FedoraBuilder.py", line
981, in rhevm_push_image_upload
raise ImageFactoryException("Failed to extract RHEV-M UUID from warehouse POST
reponse: %s" % (response))
ImageFactoryException: Failed to extract RHEV-M UUID from warehouse POST reponse: failed
ERROR curl failed GET url `https://rhevm.cloud.redhat.com:8543/rhevm-api-powershell/'
2011-07-29 09:41:15,480 DEBUG imagefactory.BuildJob.BuildAdaptor pid(8044) Message:
Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed
status from FAILED to FAILED
>
> > I can't seem to find /etc/factory.conf file. The closest thing I
> > found
> > was /etc/imagefactory.conf:
> >
> > [root@cldmgr01 ~]# cat /etc/imagefactory.conf
> > {
> > "warehouse": "http://localhost:9090/",
> > "image_bucket": "images",
>
> Looks like this is not it, then.
>
> -- Pete
> _______________________________________________
> aeolus-devel mailing list
> aeolus-devel(a)lists.fedorahosted.org
>
https://fedorahosted.org/mailman/listinfo/aeolus-devel