Replies: 13 comments 3 replies
-
I think this is a great addition to |
Beta Was this translation helpful? Give feedback.
-
Looks like it could be a nice addition! |
Beta Was this translation helpful? Give feedback.
-
Hi @tdviet Having a look through the network settings, it is not homogenous. (not all sites do public/private)
|
Beta Was this translation helpful? Give feedback.
-
The command is certainly an excellent idea, to make it useful in most real use cases, the interactive selection should be likely expanded to the user key and the security group options. |
Beta Was this translation helpful? Give feedback.
-
The main reasons for using JSON compatible syntax (JSON, jq, ...) for specification:
The main reasons against the JSON-like syntax, as you have mentioned, the existing syntaxes of JSON, jq, JMESPath are too complex, even for IT experts. Simple CLI syntax e.g. Some recommendations of simplex, user-friendly syntaxes, like the mentioned |
Beta Was this translation helpful? Give feedback.
-
Thank you all contribution. Your comments are highly appreciated, even if I cannot answer all (need some time for thinking before answer). Note that the idea is still in early design, anything can be changed, and you can decide how the final product will look like |
Beta Was this translation helpful? Give feedback.
-
The only problem (besides the complexities of the OpenStack |
Beta Was this translation helpful? Give feedback.
-
All resources have a state already. E.g. you cannot delete a sec group until it is being used.
Exactly. In my opinion you will never (or rarely) create a VM for which you will not connect some other, sometimes persistent, resources/services. VMs with just default values and automatically generated network, sec groups, etc. are not very useful. Which makes deletion of a VM a very thorny problem. |
Beta Was this translation helpful? Give feedback.
-
Thank you all for very useful discussion. Based on the discussion, I have revised the design and this is the summary:
What do you think about that? |
Beta Was this translation helpful? Give feedback.
-
The first version of the
Usage: Execute |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hi, I have been playing a bit with the new commands and below are my comments. Comment 1
Comment 2
Would it be better to have the option A similar suggestion for Comment 3
Many thanks! |
Beta Was this translation helpful? Give feedback.
-
@sebastian-luna-valero Thanks very much for testing, also for fixing the cheat sheet :-) For your comments: Comment 1: I will add support for Comment 2: There are two main reasons for different -*-specs for each command: The first one is rather simple: each option has a different help text. e.g. for flavor:
The second reason is the preparation for the future For output option Comment 3: As there is the |
Beta Was this translation helpful? Give feedback.
-
Creating a new VM via
fedcloud openstack server create
is quite cumbersome. Users must:These are the minimal options required for creating a VM. There are much more options like security groups, key names, ..., but most of them can be omitted if using the default values.
Overall, it is almost impossible to create a command
fedcloud openstack server create --site <SITE> --vo <VO>
that works on all sites, as the flavor names, image names, and network names are site-specific.Therefore, I would like to design a new function
fedcloud server create
that will replace thefedcloud openstack server create
. The initial design of the function is:The options:
fedcloud openstack flavor list --long --json-output
, e.g.{VCPUs: 2, RAM: 4098}
, or maybe a more flexible stringVCPUs==2, RAM>=4098
, where operators like>=
,=~
can be used. The syntax ofjq
could be considered, too, e.g.(.VCPUs == 2) and (.RAM >= 4098)
, it is well-known and flexible enough.Name =~"*Ubuntu*20.04*"
for selecting a Ubuntu 20.04 image. If users want to use images from AppDB, they can specify e.g.APPLIANCE_TITLE=="Image for EGI Ubuntu 18.04 [Ubuntu/18.04/VirtualBox]"
, or shorterAPPLIANCE_TITLE=~"*20.04*"
openstack server create
command, e.g. key names, security groups, server counts.The functions:
By that way, users will be able to write a command for creating VMs that will work on all sites:
Your comments and suggestions are highly appreciated. Especially for the syntax of flavor/image specifications, once we have decided, it is difficult to change.
Beta Was this translation helpful? Give feedback.
All reactions