Bug 1479765 - [RFE] Commands for creating, updating and deleting compute profiles and attributes
Summary: [RFE] Commands for creating, updating and deleting compute profiles and attri...
Keywords:
Status: POST
Alias: None
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Compute Resources
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: Shira Maximov
QA Contact: Lukáš Hellebrandt
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-09 11:13 UTC by Tomas Strachota
Modified: 2019-08-20 14:00 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
Foreman Issue Tracker 20538 None None None 2017-08-09 11:14:30 UTC
Red Hat Bugzilla 1278917 None CLOSED [RFE] Commands for read operations around compute profiles and attributes 2019-09-26 11:57:09 UTC

Internal Links: 1278917

Description Tomas Strachota 2017-08-09 11:13:51 UTC
Hammer should provide commands for modifying operations around compute profiles and attributes.

# Commands for managing compute profiles:

Compute profile commands should be quite simple:

  hammer compute-profile create --name 1-Small
  hammer compute-profile update --name 1-Small --new-name 1-Smaller
  hammer compute-profile delete --name 1-Smaller

# Commands for managing attributes:
set-attributes
- replaces the whole set of attributes for a compute resource

  hammer compute-profile set-attributes --compute-resorce tstracho-laptop --compute-profile 1-Small \
  --attributes flavor=m1.small,cpus=2,memory=4GB \
  --interface type=network,bridge=br0 \
  --interface type=network,bridge=br1 \
  --volume size=40GB

update-attributes
- partially updates enumerated attributes, keeps the previous values for the rest
- attributes for specific volume or interface can be updated when users specify its index (position in the list)
- without an index the command adds a new interface/volume

  hammer compute-profile update-attributes --compute-resorce tstracho-laptop --compute-profile 1-Small \
  --attributes cpus=2,memory=4GB \
  --interface type=network,bridge=br1,index=1 \
  --volume size=40GB,index=2

erase-attributes
- completely removes all compute attributes from a compute profile
- we can consider other names for this command, eg. "remove-attributes" or "delete-attributes"

  hammer compute-profile erase-attributes --compute-resorce tstracho-laptop --compute-profile 1-Small

# Managing interfaces and volumes:

- add-interface adds a new interface at the end of the interface list
- remove-interface requires interface's index (position in the interface list)
- update-interface changes attributes for an existing interface definition
- commands for volumes (add-volume, remove-volume, update-volume) work similarly

  hammer compute-profile add-interface --compute-resorce tstracho-laptop --compute-profile 1-Small --attributes type=network,bridge=br1
  hammer compute-profile remove-interface --compute-resorce tstracho-laptop --compute-profile 1-Small --interface-index=1
  hammer compute-profile update-interface --compute-resorce tstracho-laptop --compute-profile 1-Small --interface-index=1 --attributes type=network,bridge=br1

Comment 2 pm-sat@redhat.com 2018-01-11 17:22:30 UTC
Upstream bug assigned to mshira@redhat.com

Comment 3 pm-sat@redhat.com 2018-01-11 17:22:37 UTC
Upstream bug assigned to mshira@redhat.com

Comment 4 Bryan Kearney 2019-02-07 12:09:27 UTC
The Satellite Team is attempting to provide an accurate backlog of bugzilla requests which we feel will be resolved in the next few releases. We do not believe this bugzilla will meet that criteria, and have plans to close it out in 1 month. This is not a reflection on the validity of the request, but a reflection of the many priorities for the product. If you have any concerns about this, feel free to contact Red Hat Technical Support or your account team. If we do not hear from you, we will close this bug out. Thank you.

Comment 6 Bryan Kearney 2019-02-07 21:10:10 UTC
interesting, my script missed this. I will look to update the script. Keeping this open.

Comment 7 Bryan Kearney 2019-08-20 14:00:55 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/20538 has been resolved.


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