From jlabocki@redhat.com Wed Aug 19 15:17:06 2015 From: James Labocki To: aeolus-devel@lists.fedorahosted.org Subject: aeolus-image push curl failed Date: Thu, 28 Jul 2011 09:09:50 -0400 Message-ID: <2224F632-09B8-486F-B377-1BC55CC88434@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5673129701052912423==" --===============5673129701052912423== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable I'm running into the following error when attempting to push a successfully b= uilt image. I just pulled from the development RHEL 6.1 repo yesterday. Any h= elp on how to fix this is appreciated. I can connect via curl on the command = line. [root(a)cldmgr01 ~]# aeolus-image push --provider rhevm --id e4c702a2-ee72-4c= 08-8117-20f68d28c2b8 Provider Image: 0f453478-6f84-4295-874d-f6d25f64b4ac Image: e4c702a2-ee72-4c08-8117-20f68d28c2b8 Build: 12369482-95cb-4119-a69e-b516276e422f Status: PUSHING Percent Complete: 0 [root(a)cldmgr01 ~]# tail -f /var/log/imagefactory.log self.push_image_upload(target_image_id, provider, credentials) File "/usr/lib/python2.6/site-packages/imagefactory/builders/FedoraBuilder.p= y", 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.p= y", 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 repo= nse: failed ERROR curl failed GET url `https://rhevm.cloud.redhat.com:8543/rhevm-api-powe= rshell/' 2011-07-28 03:53:39,817 DEBUG imagefactory.BuildJob.BuildAdaptor pid(2650) Me= ssage: Raising event with agent handler (), changed status from FAILED to FAILED [root(a)cldmgr01 ~]# curl https://rhevm.cloud.redhat.com:8543/rhevm-api-power= shell/ JBoss Web/2.1.3.GA - Error report

HTTP Sta= tus 401 -


type Status repor= t

message

description This request requi= res HTTP authentication ().


JBo= ss Web/2.1.3.GA

[root(a)cldm[root(a)cldmgr01 ~]# -James --===============5673129701052912423==-- From sloranz@redhat.com Wed Aug 19 15:17:06 2015 From: Steve Loranz To: aeolus-devel@lists.fedorahosted.org Subject: Re: aeolus-image push curl failed Date: Thu, 28 Jul 2011 09:05:11 -0500 Message-ID: In-Reply-To: <2224F632-09B8-486F-B377-1BC55CC88434@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8051780101441067021==" --===============8051780101441067021== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This message, "failed ERROR curl failed GET url `https://rhevm.cloud.redhat.c= om:8543/rhevm-api-powershell/'" is coming from iwhd but I cannot make out wha= t the problem is. Maybe Jim or Pete can shed some light on what's going on h= ere. -steve On Jul 28, 2011, at 8:09 AM, James Labocki wrote: > I'm running into the following error when attempting to push a successfully= built image. I just pulled from the development RHEL 6.1 repo yesterday. Any= help on how to fix this is appreciated. I can connect via curl on the comman= d line. >=20 >=20 > [root(a)cldmgr01 ~]# aeolus-image push --provider rhevm --id e4c702a2-ee72-= 4c08-8117-20f68d28c2b8 >=20 > Provider Image: 0f453478-6f84-4295-874d-f6d25f64b4ac > Image: e4c702a2-ee72-4c08-8117-20f68d28c2b8 > Build: 12369482-95cb-4119-a69e-b516276e422f > Status: PUSHING > Percent Complete: 0 >=20 > [root(a)cldmgr01 ~]# tail -f /var/log/imagefactory.log > 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 re= ponse: failed > ERROR curl failed GET url `https://rhevm.cloud.redhat.com:8543/rhevm-api-po= wershell/' >=20 >=20 > 2011-07-28 03:53:39,817 DEBUG imagefactory.BuildJob.BuildAdaptor pid(2650) = Message: Raising event with agent handler (), changed status from FAILED to FAILED >=20 > [root(a)cldmgr01 ~]# curl https://rhevm.cloud.redhat.com:8543/rhevm-api-pow= ershell/ > JBoss Web/2.1.3.GA - Error report

HTTP S= tatus 401 -


type Status rep= ort

message

description This request req= uires HTTP authentication ().


J= Boss Web/2.1.3.GA

[root(a)cldm[root(a)cldmgr01 ~]# >=20 >=20 > -James > _______________________________________________ > aeolus-devel mailing list > aeolus-devel(a)lists.fedorahosted.org > https://fedorahosted.org/mailman/listinfo/aeolus-devel --===============8051780101441067021==-- From zaitcev@redhat.com Wed Aug 19 15:17:07 2015 From: Pete Zaitcev To: aeolus-devel@lists.fedorahosted.org Subject: Re: aeolus-image push curl failed Date: Thu, 28 Jul 2011 09:32:04 -0600 Message-ID: <20110728093204.779332e0@lembas.zaitcev.lan> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3742500600813621624==" --===============3742500600813621624== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Thu, 28 Jul 2011 09:05:11 -0500 Steve Loranz wrote: > On Jul 28, 2011, at 8:09 AM, James Labocki wrote: >=20 > > I can connect via curl on the command line. > > [root(a)cldmgr01 ~]# curl https://rhevm.cloud.redhat.com:8543/rhevm-api-p= owershell/ > > > > <h1>HTTP Status 401 - </h1> > > <u>This request requires HTTP authentication ().</u> > > [root(a)cldm[root(a)cldmgr01 ~]# Looks like RHEV password is incorrect. But please don't post it to aeolus-devel :-) > 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 w= hat 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 the /etc/factory.conf (IIRC) and try with curl -u xxx(a)yyy:ppp, see how that goes. -- Pete --===============3742500600813621624==-- From jlabocki@redhat.com Wed Aug 19 15:17:08 2015 From: James Labocki <jlabocki@redhat.com> To: aeolus-devel@lists.fedorahosted.org Subject: Re: aeolus-image push curl failed Date: Thu, 28 Jul 2011 20:22:38 -0400 Message-ID: <1790085889.1347273.1311898958913.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com> In-Reply-To: <20110728093204.779332e0@lembas.zaitcev.lan> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4709615974675265997==" --===============4709615974675265997== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable ----- Original Message ----- > From: "Pete Zaitcev" <zaitcev(a)redhat.com> > To: "Steve Loranz" <sloranz(a)redhat.com> > Cc: "James Labocki" <jlabocki(a)redhat.com>, "Jim Meyering" <jim(a)meyering= .net>, aeolus-devel(a)lists.fedorahosted.org, > zaitcev(a)redhat.com > Sent: Thursday, July 28, 2011 11:32:04 AM > Subject: Re: aeolus-image push curl failed > On Thu, 28 Jul 2011 09:05:11 -0500 > Steve Loranz <sloranz(a)redhat.com> wrote: > > On Jul 28, 2011, at 8:09 AM, James Labocki wrote: > > > > > I can connect via curl on the command line. >=20 > > > [root(a)cldmgr01 ~]# curl > > > https://rhevm.cloud.redhat.com:8543/rhevm-api-powershell/ > > > <html><head><title> > > > <h1>HTTP Status 401 - </h1> > > > <u>This request requires HTTP authentication ().</u> > > > [root(a)cldm[root(a)cldmgr01 ~]# >=20 > Looks like RHEV password is incorrect. But please don't post it to > aeolus-devel :-) It's OK, it's only a lab environment and is completely disconnected from the = network. :)=20 >=20 > > 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. >=20 > 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 > the /etc/factory.conf (IIRC) and try with curl -u xxx(a)yyy:ppp, see > how that goes. My curl -u seems to work fine: [root(a)cldmgr01 ~]# curl -u rhevadmin(a)cloud.redhat.com:password https://f= qdn:8543/rhevm-api-powershell/ <?xml version=3D"1.0" encoding=3D"UTF-8" standalone=3D"yes"?> <api> <link rel=3D"capabilities" href=3D"/rhevm-api-powershell/capabilities"/> <link rel=3D"clusters" href=3D"/rhevm-api-powershell/clusters"/> <link rel=3D"clusters/search" href=3D"/rhevm-api-powershell/clusters?sear= ch=3D{query}"/> .... etc etc=20 I can't seem to find /etc/factory.conf file. The closest thing I found was /e= tc/imagefactory.conf: [root(a)cldmgr01 ~]# cat /etc/imagefactory.conf=20 { "warehouse": "http://localhost:9090/", "image_bucket": "images", "build_bucket": "builds", "target_bucket": "target_images", "template_bucket": "templates", "icicle_bucket": "icicles", "provider_bucket": "provider_images", "imgdir": "/var/tmp", "ec2_build_style": "snapshot", "ec2_ami_type": "s3" } >=20 > -- Pete --===============4709615974675265997==-- From zaitcev@redhat.com Wed Aug 19 15:17:08 2015 From: Pete Zaitcev <zaitcev@redhat.com> To: aeolus-devel@lists.fedorahosted.org Subject: Re: aeolus-image push curl failed Date: Thu, 28 Jul 2011 19:26:17 -0600 Message-ID: <20110728192617.5c78ddfb@lembas.zaitcev.lan> In-Reply-To: =?utf-8?q?=3C1790085889=2E1347273=2E1311898958913=2EJavaMail=2E?= =?utf-8?q?root=40zmail04=2Ecollab=2Eprod=2Eint=2Ephx2=2Eredhat=2Ecom=3E?= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8049109203029748793==" --===============8049109203029748793== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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. > >=20 > > 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(a)cldmgr01 ~]# curl -u rhevadmin(a)cloud.redhat.com:password https:/= /fqdn:8543/rhevm-api-powershell/ > <?xml version=3D"1.0" encoding=3D"UTF-8" standalone=3D"yes"?> > <api> > <link rel=3D"capabilities" href=3D"/rhevm-api-powershell/capabilities"/> > <link rel=3D"clusters" href=3D"/rhevm-api-powershell/clusters"/> > <link rel=3D"clusters/search" href=3D"/rhevm-api-powershell/clusters?se= arch=3D{query}"/> > .... etc etc=20 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? > I can't seem to find /etc/factory.conf file. The closest thing I found > was /etc/imagefactory.conf: >=20 > [root(a)cldmgr01 ~]# cat /etc/imagefactory.conf=20 > { > "warehouse": "http://localhost:9090/", > "image_bucket": "images", Looks like this is not it, then. -- Pete --===============8049109203029748793==-- From jlabocki@redhat.com Wed Aug 19 15:17:09 2015 From: James Labocki <jlabocki@redhat.com> To: aeolus-devel@lists.fedorahosted.org Subject: Re: aeolus-image push curl failed Date: Fri, 29 Jul 2011 09:37:43 -0400 Message-ID: <752060383.1390715.1311946663838.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com> In-Reply-To: <20110728192617.5c78ddfb@lembas.zaitcev.lan> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0042644798049103396==" --===============0042644798049103396== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable James Labocki Solution Architect Red Hat m: 440.503.9996 ----- 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 Meyer= ing" <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: >=20 > > > > 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 >=20 > > [root(a)cldmgr01 ~]# curl -u rhevadmin(a)cloud.redhat.com:password > > https://fqdn:8543/rhevm-api-powershell/ > > <?xml version=3D"1.0" encoding=3D"UTF-8" standalone=3D"yes"?> > > <api> > > <link rel=3D"capabilities" > > href=3D"/rhevm-api-powershell/capabilities"/> > > <link rel=3D"clusters" href=3D"/rhevm-api-powershell/clusters"/> > > <link rel=3D"clusters/search" > > href=3D"/rhevm-api-powershell/clusters?search=3D{query}"/> > > .... etc etc >=20 > This is good. >=20 > 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 stan= zas to enable rhevm support, including rhevm_deltacloud_password which contai= ns 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-confi= gure` is run and the user can write to the directory. >=20 > > I can't seem to find /etc/factory.conf file. The closest thing I > > found > > was /etc/imagefactory.conf: > > > > [root(a)cldmgr01 ~]# cat /etc/imagefactory.conf > > { > > "warehouse": "http://localhost:9090/", > > "image_bucket": "images", >=20 > Looks like this is not it, then. >=20 > -- Pete > _______________________________________________ > aeolus-devel mailing list > aeolus-devel(a)lists.fedorahosted.org > https://fedorahosted.org/mailman/listinfo/aeolus-devel --===============0042644798049103396==-- From jlabocki@redhat.com Wed Aug 19 15:17:09 2015 From: James Labocki <jlabocki@redhat.com> To: aeolus-devel@lists.fedorahosted.org Subject: Re: aeolus-image push curl failed Date: Fri, 29 Jul 2011 09:43:54 -0400 Message-ID: <1438701116.1390788.1311947034383.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com> In-Reply-To: =?utf-8?q?=3C752060383=2E1390715=2E1311946663838=2EJavaMail=2Er?= =?utf-8?q?oot=40zmail04=2Ecollab=2Eprod=2Eint=2Ephx2=2Eredhat=2Ecom=3E?= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3400973873130440103==" --===============3400973873130440103== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable ----- 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 Meyer= ing" <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 >=20 > ----- 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(a)cldmgr01 ~]# curl -u rhevadmin(a)cloud.redhat.com:password > > > https://fqdn:8543/rhevm-api-powershell/ > > > <?xml version=3D"1.0" encoding=3D"UTF-8" standalone=3D"yes"?> > > > <api> > > > <link rel=3D"capabilities" > > > href=3D"/rhevm-api-powershell/capabilities"/> > > > <link rel=3D"clusters" href=3D"/rhevm-api-powershell/clusters"/> > > > <link rel=3D"clusters/search" > > > href=3D"/rhevm-api-powershell/clusters?search=3D{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? >=20 > 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) >=20 > 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 >=20 > the /exportdomain is mounted successfull on /mnt/rhevm-nfs when > `aeolus-configure` is run and the user can write to the directory. >=20 FWIW, here is a listing of the image I am trying to push # aeolus-image list --images IMAGE ID LASTEST PUSHED BUILD NAME T= ARGET OS OS VERSION ARCH DESCRIPTION =20 e4c702a2-ee72-4c08-8117-20f68d28c2b8 tmpl1 r= hevm Fedora 14 x86_64 Fedora 14 Template =20 Also, here is the full imagefactory.log output that results from `aeolus-imag= e push --provider rhevm --id e4c702a2-ee72-4c08-8117-20f68d28c2b8` 2011-07-29 09:41:15,291 DEBUG imagefactory.qmfagent.ImageFactoryAgent.ImageFa= ctoryAgent pid(8044) Message: Method called: name =3D push_image=20 args =3D {'credentials': '*** REDACTED ***', 'image': 'e4c702a2-ee72-4c08-81= 17-20f68d28c2b8', 'build': '', 'providers': ['rhevm']}=20 handle =3D <cqmf2.AgentEvent; proxy of <Swig Object of type 'qmf::AgentEvent= *' at 0x1e139c0> >=20 addr =3D redhat.com:imagefactory:1a87b75d-83f8-46c0-8249-a6af72e6ac11:image_= factory=20 subtypes =3D {}=20 userId =3D anonymous 2011-07-29 09:41:15,293 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(= 8044) Message: Getting metadata (['latest_unpushed']) from http://localhost:9= 090/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 exp= ression ($build =3D=3D "12369482-95cb-4119-a69e-b516276e422f" && $target =3D= =3D "rhevm") 2011-07-29 09:41:15,297 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(= 8044) Message: Getting metadata (['template']) from http://localhost:9090/tar= get_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 - bucke= ts(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 - bucke= ts(target_images, templates, icicles, provider_images) 2011-07-29 09:41:15,304 DEBUG imagefactory.BuildJob.BuildAdaptor pid(8044) Me= ssage: 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) Me= ssage: 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 repo= nse: failed ERROR curl failed GET url `https://rhevm.cloud.redhat.com:8543/rhevm-api-powe= rshell/' 2011-07-29 09:41:15,480 DEBUG imagefactory.BuildJob.BuildAdaptor pid(8044) Me= ssage: 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 repo= nse: failed ERROR curl failed GET url `https://rhevm.cloud.redhat.com:8543/rhevm-api-powe= rshell/' 2011-07-29 09:41:15,480 DEBUG imagefactory.BuildJob.BuildAdaptor pid(8044) Me= ssage: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial= )>), changed status from FAILED to FAILED >=20 > > > > > I can't seem to find /etc/factory.conf file. The closest thing I > > > found > > > was /etc/imagefactory.conf: > > > > > > [root(a)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 --===============3400973873130440103==-- From zaitcev@redhat.com Wed Aug 19 15:17:10 2015 From: Pete Zaitcev <zaitcev@redhat.com> To: aeolus-devel@lists.fedorahosted.org Subject: Re: aeolus-image push curl failed Date: Fri, 29 Jul 2011 10:55:33 -0600 Message-ID: <20110729105533.0ceddc22@lembas.zaitcev.lan> In-Reply-To: =?utf-8?q?=3C1438701116=2E1390788=2E1311947034383=2EJavaMail=2E?= =?utf-8?q?root=40zmail04=2Ecollab=2Eprod=2Eint=2Ephx2=2Eredhat=2Ecom=3E?= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4045093105054096601==" --===============4045093105054096601== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Fri, 29 Jul 2011 09:43:54 -0400 (EDT) James Labocki <jlabocki(a)redhat.com> wrote: > > > > [root(a)cldmgr01 ~]# curl -u rhevadmin(a)cloud.redhat.com:password > > > > https://fqdn:8543/rhevm-api-powershell/ > > rhevm_deltacloud_username: deltacloud(a)cloud.redhat.com > > rhevm_deltacloud_password: Password > > rhevm_deltacloud_powershell_url: > > https://fqdn:8543/rhevm-api-powershell You tried with rhevadmin user, but iwhd is apparently configured to use "deltacloud" user. Please try deltacloud@, see how that works. Since you are redacting more than just password before posting, and so I cannot see the true picture, it falls on you to be very careful comparing parameters of factory and curl. > ImageFactoryException: Failed to extract RHEV-M UUID from warehouse POST re= ponse: failed > ERROR curl failed GET url `https://rhevm.cloud.redhat.com:8543/rhevm-api-po= wershell/' Look, this is a simple thing. All those mounts and whatnot are immaterial at present juncture. The iwhd receives an error when it tries to access the root of the API, that's all it is. Unfortunately, libcurl does not tell us if it's 403, 404, or what it is. That is why you run CLI curl with the _same parameters_ on the same host, but with -v, which allows to determine what fails. Maybe it's just iptables or a typo in some configuration somewhere. The most surefire way to know would've been tcpdump, but alas, RHEV-2.2 forces SSL. -- Pete --===============4045093105054096601==--