Description of problem: [root@preethi ~]# pulp-admin package install -n emoticons --consumerid pulp-client --when="2010-06-01 01:01" Traceback (most recent call last): File "/usr/bin/pulp-admin", line 176, in <module> admin.main() File "/usr/lib/python2.7/site-packages/pulp/client/cli/base.py", line 137, in main command.main(args[1:]) File "/usr/lib/python2.7/site-packages/pulp/client/core/base.py", line 118, in main action.main(args[1:]) File "/usr/lib/python2.7/site-packages/pulp/client/core/base.py", line 206, in main self.run() File "/usr/lib/python2.7/site-packages/pulp/client/core/package.py", line 112, in run when = parse_at_schedule(self.opts.when) File "/usr/lib/python2.7/site-packages/pulp/client/core/utils.py", line 92, in parse_at_schedule dateutils.parse_iso8601_datetime(start) File "/usr/lib/python2.7/site-packages/pulp/common/dateutils.py", line 126, in parse_iso8601_datetime return isodate.parse_datetime(datetime_str) File "/usr/lib/python2.7/site-packages/isodate/isodatetime.py", line 48, in parse_datetime datestring, timestring = datetimestring.split('T') ValueError: need more than 1 value to unpack [root@preethi ~]# pulp-admin package install -n emoticons --consumerid pulp-client --when=2011-05-31T20:30:00-05:00:00 Created task id: cf6c1ebd-8bc4-11e0-bf75-002564a85a58 Traceback (most recent call last): File "/usr/bin/pulp-admin", line 176, in <module> admin.main() File "/usr/lib/python2.7/site-packages/pulp/client/cli/base.py", line 137, in main command.main(args[1:]) File "/usr/lib/python2.7/site-packages/pulp/client/core/base.py", line 118, in main action.main(args[1:]) File "/usr/lib/python2.7/site-packages/pulp/client/core/base.py", line 206, in main self.run() File "/usr/lib/python2.7/site-packages/pulp/client/core/package.py", line 125, in run time.strftime("%Y-%m-%d %H:%M", time.localtime(when)) TypeError: a float is required [root@preethi ~]#
committed fix for this in 4041a00a74e4057cf264b81c0c6270f5639a5def There were 2 issues here, one was that the help documentation was wrong, the 2nd was a bug in the date formatting in the command output. Those should be fixed.
build: 0.192
This bug was not included in build 0.192
build: 0.196
fails_qa [root@preethi ~]# rpm -q pulp pulp-0.0.200-1.fc14.noarch failing since the package install is being scheduled for a future time, the cursor should return. Currently the cursor waits for the package install to occur. [root@preethi ~]# pulp-admin package install -n zsh --consumerid pulp-client1 --when="2011-07-06T09:30:00-05:00:00" Created task id: 3e7ab76e-a7c7-11e0-a727-002564a85a58 Task is scheduled for: 2011-07-06T09:30:00-05:00:00 Waiting: [\]
I added a --wait option to the package install command. If specified, the command will wait until the install is complete to exit. Otherwise, it will exit once the task has been scheduled. If --wait is specified, and the consumer is unavailable, we confirm with the user if they still want to wait since it could be an indeterminate amount of time since we're not sure if we can reach the consumer. This matches the existing behavior. committed to pulp master: 634f6695bb0a6c9324a3d97b54e7b533b5ab86eb
Build 0.207.
After further discussion, it makes sense to restore the previous behavior and instead change the option to be --nowait. So, if you want to kick off a package install that is far into the future, you will need to specify --nowait on the command line if you want the command to return as soon as the package install is scheduled. committed to pulp master: 8c54707fc4deae65fb11f40746cbad1d3d6b79fc
build: 0.210
verified [root@preethi upload]# rpm -q pulp pulp-0.0.213-1.fc14.noarch [root@preethi upload]# pulp-admin package install -n screen --consumerid pulp-client --when="2011-07-28T09:30:00-05:00:00" --nowait Created task id: e50b311c-b88e-11e0-a105-002564a85a58 Task is scheduled for: 2011-07-28T09:30:00-05:00:00
Closing with Community Release 15 pulp-0.0.223-4.