Ticket #139 (closed task: fixed)

Opened 2 years ago

Last modified 2 years ago

a successful createsliver reports the slice expiration time, which is confusing

Reported by: chaos Owned by: somebody
Priority: major Milestone: 2.0
Component: gcf Version:
Keywords: Cc:
Dependencies:

Description

I got this output from createsliver today:

$ omni1 -a http://www.pgeni1.gpolab.bbn.com/protogeni/xmlrpc/am
createsliver ecgtest2 ~/omni/rspecs/request/misc/protogeni-any-one-
node.rspec
INFO:omni:Loading config file /home/chaos/omni/omni_pgeni1
INFO:omni:Using control framework pg
INFO:omni:Slice urn:publicid:IDN+pgeni1.gpolab.bbn.com+slice+ecgtest2
expires on 2012-05-25 00:00:00 UTC
INFO:omni:Creating sliver(s) from rspec file
/home/chaos/omni/rspecs/request/misc/protogeni-any-one-node.rspec for
slice urn:publicid:IDN+pgeni1.gpolab.bbn.com+slice+ecgtest2
INFO:omni:Asked http://www.pgeni1.gpolab.bbn.com/protogeni/xmlrpc/am to
reserve resources. Result:
INFO:omni:<?xml version="1.0" ?>
INFO:omni:<!-- Reserved resources for:
        Slice: ecgtest2
        At AM:
        URL: http://www.pgeni1.gpolab.bbn.com/protogeni/xmlrpc/am
 -->
INFO:omni:<rspec xmlns="http://protogeni.net/resources/rspec/0.2">
    <node
component_manager_urn="urn:publicid:IDN+pgeni1.gpolab.bbn.com+authority+cm"
component_manager_uuid="957cd0c5-c5a4-11df-a3fa-000c29b09582"
component_urn="urn:publicid:IDN+pgeni1.gpolab.bbn.com+node+pc1"
component_uuid="61eb143d-b641-11df-ab7f-000c29b09582" exclusive="1"
hostname="pc1.pgeni1.gpolab.bbn.com"
sliver_urn="urn:publicid:IDN+pgeni1.gpolab.bbn.com+sliver+79"
sliver_uuid="9574f2c6-9aa4-11e1-adf1-000c29b09582" sshdport="22"
virtual_id="geni1" virtualization_subtype="raw" virtualization_type
="emulab-vnode">
      <services>      <login authentication="ssh-keys"
hostname="pc1.pgeni1.gpolab.bbn.com" port="22" username="chaos"/>
</services>  </node>
</rspec>
INFO:omni: ------------------------------------------------------------
INFO:omni: Completed createsliver:

  Options as run:
                aggregate:
http://www.pgeni1.gpolab.bbn.com/protogeni/xmlrpc/am
                configfile: /home/chaos/omni/omni_pgeni1
                framework: pg
                native: True

  Args: createsliver ecgtest2 /home/chaos/omni/rspecs/request/misc
/protogeni-any-one-node.rspec

  Result Summary: Slice
urn:publicid:IDN+pgeni1.gpolab.bbn.com+slice+ecgtest2 expires on
2012-05-25 00:00:00 UTC
Reserved resources on
http://www.pgeni1.gpolab.bbn.com/protogeni/xmlrpc/am.
INFO:omni: ============================================================

$ type omni1
omni1 is aliased to `~/src/gcf-1.5/src/omni.py -c ~/omni/omni_pgeni1'         

I think it's confusing that createsliver tells you the slice expiration time, since the sliver expiration time might be different, and more closely matches what you just created.

Change History

Changed 2 years ago by chaos

Aaron told me that this will get a lot better in AM API v3, as right now you can't actually get the sliver expiration time without doing a separate sliverstatus call.

However, it might be possible to print a warning or comment to run sliverstatus to find out the sliver expiration time, to try to warn people more clearly that what they're looking at isn't sliver expiration.

Changed 2 years ago by ahelsing

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 2.0

New omni output for createsliver:

WARNING:omni:Slice urn:publicid:IDN+geni:gpo:gcf+slice+aslicenamethatistoolongforthenewamapirulessoshouldberejected expires in <= 3 hours
INFO:omni:Slice urn:publicid:IDN+geni:gpo:gcf+slice+aslicenamethatistoolongforthenewamapirulessoshouldberejected expires on 2012-08-29 14:55:40 UTC
INFO:omni:Creating sliver(s) from rspec file rspec-request-localhost-8001.xml for slice urn:publicid:IDN+geni:gpo:gcf+slice+aslicenamethatistoolongforthenewamapirulessoshouldberejected
INFO:omni:Got return from CreateSliver for slice aslicenamethatistoolongforthenewamapirulessoshouldberejected at https://localhost:8001:
INFO:omni:<?xml version="1.0" ?>
INFO:omni:  <!-- Reserved resources for:
	Slice: aslicenamethatistoolongforthenewamapirulessoshouldberejected
	at AM:
	URN: unspecified_AM_URN
	URL: https://localhost:8001
 -->
INFO:omni:  <rspec type="manifest" xmlns="http://www.geni.net/resources/rspec/3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.geni.net/resources/rspec/3 http://www.geni.net/resources/rspec/3/manifest.xsd">  <node client_id=""/></rspec>
INFO:omni: ------------------------------------------------------------
INFO:omni: Completed createsliver:

  Options as run:
		aggregate: ['https://localhost:8001']
		configfile: my_oc
		framework: my_gcf
		getversionCacheName: /home/ahelsing/.gcf/get_version_cache.json
		rspectype: ('ProtoGENI', '2')

  Args: createsliver aslicenamethatistoolongforthenewamapirulessoshouldberejected rspec-request-localhost-8001.xml

  Result Summary: Got Reserved resources RSpec from localhost-8001 
INFO:omni: ============================================================

When you do allocate or other APIv3 methods, you'll see sliver expiration times

Note: See TracTickets for help on using tickets.