cmdline acquire and start is difficult

Bug #1074317 reported by Scott Moser
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Unassigned

Bug Description

Acquiring a specific node can be accomplished via the cmdline or api via hostname
   maas-cli maaslocal nodes acquire name=$host

However, then after acquiring the node if I want to start it I have to do:
  maas-cli maaslocal node start $SYSTEM_ID

The two separate pieces of information needed is annoying.

Things I'd like improved:
 * ability to acquire a specific node by its node id:
   maas-cli maaslocal nodes acquire system_id=$SYSTEM_ID
 * ability to start a node by its hostname. Since hostname is valid for acquire, it would be useful to suffice for start also. Although if I can use system_id in both cases, this is less important.
 * api or cmdline failure or complaint based on invalid input
    Currently if I try to acquire a system and pass data like:
       acquire frobnicator=19 flex_capacitor=true
    Maas will happily return me a system. I'd like it complain that it doesn't know what a fronbicator is, or at very least it should return no system as none of the systems in my maas have a flex_capicitor I found this when trying to use 'system_id='

Related bugs:
 * bug 1590991: Cannot allocate a node based on its system_id

Tags: cli
Gavin Panella (allenap)
Changed in maas:
status: New → Triaged
importance: Undecided → High
Changed in maas:
importance: High → Medium
tags: added: cli
Scott Moser (smoser)
description: updated
description: updated
Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi!

**This is an automated message**

We believe this is may no longer be an issue in the latest MAAS release. Due to the report date of this, we are currently marking it as Invalid. If you believe this bug report still valid against the latest release of MAAS, or if you are still interested in this, please re-open this bug report.

Thanks

Changed in maas:
status: Triaged → Invalid
Scott Moser (smoser)
Changed in maas:
status: Invalid → New
Changed in maas:
status: New → Triaged
Revision history for this message
Scott Moser (smoser) wrote :

Original open had 3 requests:
1. ability to acquire a specific node by its node id:
   maas-cli maaslocal nodes acquire system_id=$SYSTEM_ID
2. ability to start a node by its hostname.
3. api or cmdline failure or complaint based on invalid input

bug 1590991 fixes '1', the most severe.

Are 2 and 3 fixed now?

Changed in maas:
milestone: none → next
Revision history for this message
Blake Rouse (blake-rouse) wrote :

python-libmaas gives you the ability you want. Hopefully this next cycle we can get it feature complete to replace the old not-really a CLI.

maas deploy xenial {hostname}

Revision history for this message
Andres Rodriguez (andreserl) wrote : Re: [Bug 1074317] Re: cmdline acquire and start is difficult

the API (and the current CLI) also allows you to do the same. e.g. deploy
without having to acquire.

On Tue, Apr 24, 2018 at 11:39 AM, Blake Rouse <email address hidden>
wrote:

> python-libmaas gives you the ability you want. Hopefully this next cycle
> we can get it feature complete to replace the old not-really a CLI.
>
> maas deploy xenial {hostname}
>
> --
> You received this bug notification because you are subscribed to MAAS.
> https://bugs.launchpad.net/bugs/1074317
>
> Title:
> cmdline acquire and start is difficult
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/maas/+bug/1074317/+subscriptions
>
> Launchpad-Notification-Type: bug
> Launchpad-Bug: product=maas; milestone=next; status=Triaged;
> importance=Medium; assignee=None;
> Launchpad-Bug-Tags: cli
> Launchpad-Bug-Information-Type: Public
> Launchpad-Bug-Private: no
> Launchpad-Bug-Security-Vulnerability: no
> Launchpad-Bug-Commenters: andreserl blake-rouse smoser
> Launchpad-Bug-Reporter: Scott Moser (smoser)
> Launchpad-Bug-Modifier: Blake Rouse (blake-rouse)
> Launchpad-Message-Rationale: Subscriber (MAAS)
> Launchpad-Message-For: andreserl
>

--
Andres Rodriguez (RoAkSoAx)
Ubuntu Server Developer
MSc. Telecom & Networking
Systems Engineer

Changed in maas:
status: Triaged → Incomplete
Revision history for this message
Björn Tillenius (bjornt) wrote :

I'm closing this bug since libmaas provides this functionality, and it provides a CLI. If something is still missing, please file a new bug.

Changed in maas:
status: Incomplete → Fix Released
Changed in maas:
milestone: next → none
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.