Giter VIP home page Giter VIP logo

Comments (17)

kalou avatar kalou commented on July 29, 2024

On Wed, 2014-09-10 at 06:36 -0700, Alexandre Loureiro Solleiro wrote:

When $ gandi vm create is ran without a password, we get this message:

/!\ Please be aware that you did not provide a password, some services like console will not be able to work.

It might be nicer instead to display the VM's config and other details
such as:

  * root and admin users will be created
  * SSH key authorization will be used
  * No password was supplied (Warning: emergency console access
    from the web interface is disabled)

I believe I'm guilty here. There used to be a full detailed output about
the vm config and I asked for a smaller and clearer output. Maybe add
just the required, non obvious details ?

from gandi.cli.

webcracy avatar webcracy commented on July 29, 2024

@kalou I think I like the whole output better, but minimal non obvious info seems like a good compromise.

from gandi.cli.

sayoun avatar sayoun commented on July 29, 2024

Yes I removed the verbose output at kalou's request but it's still available using -v options:
$ gandi -v vm create

I think minimal but non obvious is the way to go, is @webcracy proposal ok with you @kalou ?

from gandi.cli.

kalou avatar kalou commented on July 29, 2024

Provided -v exists, I think we really should stick to minimal information then. What's eligible ?

from gandi.cli.

sayoun avatar sayoun commented on July 29, 2024

I don't think we should output raw values like -v do, @webcracy proposal seems ok to me.
We should make user friendly output to warn the user but no frighten him.

I don't see anything to add to the above list, except maybe a brief summary of vm specs and hostname reminder ? like:
configuration used: 2 cores, 256Mb memory, ipv4/6 enabled, hostname: docker

from gandi.cli.

sayoun avatar sayoun commented on July 29, 2024

Ok I've changed to have this:

$ gandi vm create --login hordax
* root and hordax users will be created.
* SSH key authorization will be used.
* No password was supplied (Warning: emergency console access from the web interface is disabled).
* Configuration used: 1 cores, 256Mb memory, ip v4, image Debian 7, hostname: temp1410423975
Creating your Virtual Machine.
Progress: [####----------------------------------------] 11.11%  00:00:18`

is it ok for you @kalou and @webcracy ?

from gandi.cli.

kalou avatar kalou commented on July 29, 2024

On Thu, 2014-09-11 at 01:31 -0700, Dejan Filipovic wrote:

Ok I've changed to have this:

$ gandi vm create --login hordax

  • root and hordax users will be created.
  • SSH key authorization will be used.
  • No password was supplied (Warning: emergency console access from the web interface is disabled).
  • Configuration used: 1 cores, 256Mb memory, ip v4, image Debian 7, hostname: temp1410423975
    Creating your Virtual Machine.
    Progress: [####----------------------------------------] 11.11% 00:00:18`

Looks ok to me on the contents

I think "emergency console access from the web interface is disabled"
does not reflect the password missing cause enough

Also is this example showing ipv4 only normal ?

from gandi.cli.

sayoun avatar sayoun commented on July 29, 2024

I used default configuration during tests and it uses ip_version 4. But I think you want to display ipv4+v6 and not juste ip v4 as we always create an ipv6 for all ipv4, but not the otherway around.

from gandi.cli.

kalou avatar kalou commented on July 29, 2024

On Thu, 2014-09-11 at 02:07 -0700, Dejan Filipovic wrote:

I used default configuration during tests and it uses ip_version 4.
But I think you want to display ipv4+v6 and not juste ip v4 as we
always create an ipv6 for all ipv4, but not the otherway around.

yes - the question was stupid but my intent was to ask for v4/v6
output ;)

from gandi.cli.

webcracy avatar webcracy commented on July 29, 2024

I like it and think ipv6 will be a nice addition as well.

As for a better wording for the emergency web console, how about:
No password supplied for user login (required to enable emergency web console access).

from gandi.cli.

sayoun avatar sayoun commented on July 29, 2024

Seems ok to me @webcracy, I changed to display this now:

$ gandi vm create --login hordax
* root and hordax users will be created.
* SSH key authorization will be used.
* No password supplied for user hordax (required to enable emergency web console access).
* Configuration used: 1 cores, 256Mb memory, ip v4+v6, image Debian 7, hostname: temp1410440049
Creating your Virtual Machine.

if ip_version value is 6, it will only display ip v6 in message.

from gandi.cli.

kalou avatar kalou commented on July 29, 2024

sorry to pinailler ;) but .. "No password was supplied for vm" != for user, even though we use the same for both purposes. One should be able to specify a password with no user.

from gandi.cli.

webcracy avatar webcracy commented on July 29, 2024

๐Ÿ‘ indeed, thanks for pinailling :)

from gandi.cli.

sayoun avatar sayoun commented on July 29, 2024

Ok I'll change this but we always create a default user in CLI (default value to 'admin'), maybe it's a bug ?

from gandi.cli.

kalou avatar kalou commented on July 29, 2024

The API login parameter is optional with no default, and we use the password for root and the vm object itself - so I believe this could be optioned-out safely.

from gandi.cli.

sayoun avatar sayoun commented on July 29, 2024

Ok i'll also change this then.

from gandi.cli.

sayoun avatar sayoun commented on July 29, 2024

Made login parameter optional with no default, and commited and fixed summary displayed before vm creation. Closing this issue.

from gandi.cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.