Bug 715103 - aeolus-image push w/ build id not implemented / fails
Summary: aeolus-image push w/ build id not implemented / fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: rubygem-aeolus-image
Version: 0.3.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
Assignee: Jason Guiditta
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-21 21:13 UTC by wes hayutin
Modified: 2011-12-08 14:13 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-29 14:47:40 UTC


Attachments (Terms of Use)

Description wes hayutin 2011-06-21 21:13:09 UTC
it looks like the build is designed to push to all available targets..
pushing to a specific target works.. where using the build id fails..

/usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/push_command.rb:32:in `combo_implemented?': undefined method `empty?' for nil:NilClass (NoMethodError)

is this a beta feature?


Warning: Invalid option
[root@dell-pe1950-02 ~]# aeolus-image push --build bb4af9ce-df03-4a6a-9d40-6a9707df52e5 
/usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/push_command.rb:32:in `combo_implemented?': undefined method `empty?' for nil:NilClass (NoMethodError)
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/push_command.rb:13:in `run'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/config_parser.rb:196:in `push'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/config_parser.rb:30:in `send'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/config_parser.rb:30:in `process'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/bin/aeolus-image:6
	from /usr/bin/aeolus-image:19:in `load'
	from /usr/bin/aeolus-image:19
2011-06-21 17:06:49 warning Connection [50343 localhost:5672] closed
[root@dell-pe1950-02 ~]# ruby /root/checkServices.rb 

Checking aeolus-conductor ...
 Success: (pid  7330) is running...

Checking aeolus-connector ...
 Success: image_factory_connector (pid  6306) is running...

Checking condor ...
 Success: condor_master (pid  6146) is running...

Checking conductor-dbomatic ...
 Success: dbomatic (pid  6776) is running...

Checking conductor-delayed_job ...
 Success: delayed_job (pid  6865) is running...

Checking conductor-warehouse_sync ...
/root/checkServices.rb:31: command not found: /etc/init.d/conductor-warehouse_sync status
 FAILURE: 

Checking deltacloud-ec2-us-east-1 ...
 Success: deltacloudd (pid  6939) is running...

Checking deltacloud-ec2-us-west-1 ...
 Success: deltacloudd (pid  6882) is running...

Checking deltacloud-mock ...
 Success: deltacloudd (pid  6992) is running...

Checking httpd ...
 Success: httpd (pid  6740) is running...

Checking imagefactory ...
 Success: imagefactory (pid  12591) is running...

Checking iwhd ...
 Success: iwhd (pid  6346) is running...

Checking libvirtd ...
 Success: libvirtd (pid  3513) is running...

Checking mongod ...
 Success: mongod (pid 6257) is running...

Checking ntpd ...
 Success: ntpd (pid  13909) is running...

Checking postgresql ...
 Success: postmaster (pid  3988) is running...

Checking qpidd ...
 Success: qpidd (pid  6178) is running...

Checking production solr ...
 Success: COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
java    6395 root   70u  IPv6  74957      0t0  TCP *:8983 (LISTEN)

Checking connector ...
 Success: COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
image_fac 6306 root   12u  IPv4  74879      0t0  TCP localhost:cfinger (LISTEN)

Checking condor_q ...
 Success: -- Submitter: dell-pe1950-02.rhts.englab.brq.redhat.com : <10.34.35.52:53203> : dell-pe1950-02.rhts.englab.brq.redhat.com
 ID      OWNER            SUBMITTED     RUN_TIME ST PRI SIZE CMD               

0 jobs; 0 idle, 0 running, 0 held

Checking condor_status ...
 Success: 

[root@dell-pe1950-02 ~]# aeolus-image push --provider ec2-us-east-1 --id 9da77bfb-1fe6-4e12-a43b-60b51f07445c 

Provider Image: b7c42fa1-2e30-455b-89c4-ec32a4d84d31
Image: 9da77bfb-1fe6-4e12-a43b-60b51f07445c
Build: bb4af9ce-df03-4a6a-9d40-6a9707df52e5
Status: New
Percent Complete: 0
[root@dell-pe1950-02 ~]# tail -f /var/log/imagefactory.log 
2011-06-21 17:08:17,013 DEBUG oz.Guest.FedoraRemoteGuest pid(12591) Message: Name: wes02_f14, UUID: 0f241369-bb9a-4c7e-9cf8-a25da04408a0
2011-06-21 17:08:17,013 DEBUG oz.Guest.FedoraRemoteGuest pid(12591) Message: MAC: 52:54:00:bf:6e:87, distro: Fedora
2011-06-21 17:08:17,013 DEBUG oz.Guest.FedoraRemoteGuest pid(12591) Message: update: 14, arch: x86_64, diskimage: /var/tmp/wes02_f14.dsk
2011-06-21 17:08:17,018 DEBUG oz.Guest.FedoraRemoteGuest pid(12591) Message: nicmodel: virtio, clockoffset: utc
2011-06-21 17:08:17,018 DEBUG oz.Guest.FedoraRemoteGuest pid(12591) Message: mousetype: ps2, disk_bus: virtio, disk_dev: vda
2011-06-21 17:08:17,020 DEBUG oz.Guest.FedoraRemoteGuest pid(12591) Message: icicletmp: /var/lib/oz/icicletmp/wes02_f14, listen_port: 44107
2011-06-21 17:08:17,034 DEBUG oz.Guest.FedoraRemoteGuest pid(12591) Message: Original ISO path: /var/lib/oz/isos/Fedora14x86_64-url.iso
2011-06-21 17:08:17,034 DEBUG oz.Guest.FedoraRemoteGuest pid(12591) Message: Modified ISO cache: /var/lib/oz/isos/Fedora14x86_64-url-oz.iso
2011-06-21 17:08:17,034 DEBUG oz.Guest.FedoraRemoteGuest pid(12591) Message: Output ISO path: /var/tmp/wes02_f14-url-oz.iso
2011-06-21 17:08:17,035 DEBUG oz.Guest.FedoraRemoteGuest pid(12591) Message: ISO content path: /var/lib/oz/isocontent/wes02_f14-url
2011-06-21 17:08:32,396 DEBUG oz.Guest.FedoraRemoteGuest pid(12591) Message: Original URL http://download.fedoraproject.org/pub/fedora/linux/releases/14/Fedora/x86_64/os/ resolved to http://download.englab.brq.redhat.com/pub/fedora/linux/releases/14/Fedora/x86_64/os/
2011-06-21 17:08:32,397 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(12591) Message: Being asked to push for provider ec2-us-east-1
2011-06-21 17:08:32,405 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(12591) Message: distro: Fedora - update: 14 - arch: x86_64
2011-06-21 17:08:32,419 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(12591) Message: acting as EC2 user: 6735-0069-5950
2011-06-21 17:08:32,419 DEBUG imagefactory.BuildJob.BuildAdaptor pid(12591) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed status from NEW to PUSHING
2011-06-21 17:08:32,420 DEBUG imagefactory.BuildJob.BuildAdaptor pid(12591) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed percent complete from 0 to 0
2011-06-21 17:08:32,421 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(12591) Message: Starting ami ami-d6b946bf with instance_type m1.large
2011-06-21 17:08:33,455 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(12591) Message: Creating temporary security group (imagefactory-b7c42fa1-2e30-455b-89c4-ec32a4d84d31)
2011-06-21 17:08:35,418 WARNING boto pid(12591) Message: Error converting code (pending) to int
^C
[root@dell-pe1950-02 ~]# tail -f /var/log/imagefactory.log 
2011-06-21 17:08:32,396 DEBUG oz.Guest.FedoraRemoteGuest pid(12591) Message: Original URL http://download.fedoraproject.org/pub/fedora/linux/releases/14/Fedora/x86_64/os/ resolved to http://download.englab.brq.redhat.com/pub/fedora/linux/releases/14/Fedora/x86_64/os/
2011-06-21 17:08:32,397 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(12591) Message: Being asked to push for provider ec2-us-east-1
2011-06-21 17:08:32,405 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(12591) Message: distro: Fedora - update: 14 - arch: x86_64
2011-06-21 17:08:32,419 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(12591) Message: acting as EC2 user: 6735-0069-5950
2011-06-21 17:08:32,419 DEBUG imagefactory.BuildJob.BuildAdaptor pid(12591) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed status from NEW to PUSHING
2011-06-21 17:08:32,420 DEBUG imagefactory.BuildJob.BuildAdaptor pid(12591) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed percent complete from 0 to 0
2011-06-21 17:08:32,421 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(12591) Message: Starting ami ami-d6b946bf with instance_type m1.large
2011-06-21 17:08:33,455 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(12591) Message: Creating temporary security group (imagefactory-b7c42fa1-2e30-455b-89c4-ec32a4d84d31)
2011-06-21 17:08:35,418 WARNING boto pid(12591) Message: Error converting code (pending) to int
2011-06-21 17:08:45,422 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(12591) Message: Waiting for EC2 instance to start: 0/300
2011-06-21 17:08:55,615 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(12591) Message: Waiting for EC2 instance to start: 10/300

Comment 1 wes hayutin 2011-06-29 14:47:40 UTC
ack.. aeolus-image commands using build id are not implemented.. spoke w/ jayg offline..

Comment 2 Jason Guiditta 2011-06-29 14:54:27 UTC
I added better feedback for this anyway in the interim:

commit a9585d544bdb1d8ec510cf77ebe49568bc1ab9dc
Author: Jason Guiditta <jguiditt>
Date:   Wed Jun 22 14:44:08 2011 -0400

    BZ #715103 aeolus-image push w/ build id not implemented / fails
    
    https://bugzilla.redhat.com/show_bug.cgi?id=715103
    
    This started as a patch to tidy up tests and exits, but turned out
    to also take care of this BZ.  The user should now get appropriate
    feedback when calling this not-yet-implemented combination.
    
    This should result in no other functional changes, just removes some
    duplication in the tests, and give a non-zero exit code for
    error cases, which we should not have had exit with 0 previously.

Comment 3 wes hayutin 2011-07-11 00:32:28 UTC
removing from tracker

Comment 4 wes hayutin 2011-12-08 14:13:38 UTC
perm close


Note You need to log in before you can comment on or make changes to this bug.