ooi

actions missing attribute definitions

Bug #1687947 reported by Boris Parak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ooi
Expired
Undecided
Unassigned

Bug Description

Some actions served in the OOI model are missing attribute definitions for `method` or other applicable attributes, e.g. 'http://schemas.ogf.org/occi/infrastructure/compute/action#suspend'

Example:

    {
      "attributes": {
        "method": {
          "default": "suspend",
          "description": "Suspend method",
          "mutable": true,
          "pattern": "(?-mix:^(hibernate|suspend)$)",
          "required": false,
          "type": "string"
        }
      },
      "scheme": "http://schemas.ogf.org/occi/infrastructure/compute/action#",
      "term": "suspend",
      "title": "Change compute status to suspended"
    }

vs.

    {
      "scheme": "http://schemas.ogf.org/occi/infrastructure/compute/action#",
      "term": "suspend",
      "title": "suspend compute instance"
    }

Alvaro Lopez (aloga)
Changed in ooi:
importance: Undecided → High
milestone: none → 1.2.0
status: New → Confirmed
Revision history for this message
Alvaro Lopez (aloga) wrote :

Hi Boris,

is the "method" attribute mandatory? I have reviewed the OCCI spec and I only could found the following (OCCI core): "An Action instance MAY identify Attributes which correspond to parameters of the invocable operation."

In this particular case OpenStack does not allow any method to be specified, therefore I guess not having any attributes here is ok.

Changed in ooi:
status: Confirmed → Incomplete
Revision history for this message
Boris Parak (araxxxx) wrote :

Hi Alvaro,

this is another ambiguity in the standard. IMO, Action instance MAY identify attributes when it is defined. For INFRA, that is the GFD.224 document where `suspend` has an attribute. The ambiguity here is in "standard" vs. "implementation". Can implementation omit an attribute defined in the standard? It is not clearly stated anywhere ... of course.

I would say that this is not a high-priority issue. Requests specifying an undeclared attribute will simply be rejected by the server. I can live with that.

Alvaro Lopez (aloga)
Changed in ooi:
milestone: 1.2.0 → none
importance: High → Undecided
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ooi because there has been no activity for 60 days.]

Changed in ooi:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.