Opened 12 years ago

Closed 12 years ago

#80 closed (fixed)

no Contact data is serialized into XML for SliceAuthority users

Reported by: chaos@bbn.com Owned by: somebody
Priority: major Milestone: 2012-09-04 client release
Component: Clients Version:
Keywords: v0.6.0 Cc:
Dependencies:

Description

When someone is a user at a slice authority, the old XML contained this type of information about the user:

  <contact email="chaos@bbn.com" urn="urn:publicid:IDN+pgeni.gpolab.bbn.com+user+chaos" organization="BBN" given_name="Chaos" last_name="Golubitsky" />
...
  <sa urn="urn:publicid:IDN+pgeni.gpolab.bbn.com+authority+sa" version="16c3451f2d049fa0f679f77d218f23e282d9026a" name="pgeni.gpolab.bbn.com" type="protogeni" pop="gpolab" organization="BBN">
...
    <user urn="urn:publicid:IDN+pgeni.gpolab.bbn.com+user+chaos" />
...
  </sa>

When i run this code:

users = {
  'urn:publicid:IDN+pgeni.gpolab.bbn.com+user+chaos':
    gmoc.Contact(
      'urn:publicid:IDN+pgeni.gpolab.bbn.com+user+chaos',
      givenName = 'Chaos',
      lastName = 'Golubitsky',
      email = 'chaos@bbn.com',
    ),
...
sa.users = [ users['urn:publicid:IDN+pgeni.gpolab.bbn.com+user+chaos'], ]

the serialized XML contains:

...
        <sa name="urn:publicid:IDN+pgeni.gpolab.bbn.com+authority+sa" organization="urn:publicid:IDN+gmoc.geni.net+organization+BBN" pop="urn:publicid:IDN+gmoc.geni.net+pop+gpolab" type="protogeni" urn="urn:publicid:IDN+pgeni.gpolab.bbn.com+authority+sa" version="16c3451f2d049fa0f679f77d218f23e282d9026a">
...
                <user urn="urn:publicid:IDN+pgeni.gpolab.bbn.com+user+chaos"/>
...

That is, there is no top-level contact element for urn:publicid:IDN+pgeni.gpolab.bbn.com+user+chaos. It should be possible to serialize contact elements for all contacts the client defines, not just the POP's primary and escalation contacts. (Maybe iterate over POP.contacts (if that exists) the same way you do over POP.aggregates etc?)

Change History (2)

comment:1 Changed 12 years ago by sedwards@bbn.com

Keywords: v0.6.0 added; v0.5.3 removed

I don't think this is fixed in 0.6.0, but maybe I'm just not seeing.

comment:2 Changed 12 years ago by chaos@bbn.com

Resolution: fixed
Status: newclosed

Looks good in 0.6.1:

<gmoc_topology time="1346892209" version="4">
...
        <contact email="chaos@bbn.com" given_name="Chaos" last_name="Golubitsky" urn="urn:publicid:IDN+pgeni.gpolab.bbn.com+user+chaos"/>
...
Note: See TracTickets for help on using tickets.