Comissioning scripts should trigger a hardware reinventory

Bug #1696276 reported by Christian Reis
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Expired
Wishlist
Unassigned

Bug Description

When running commissioning scripts to manipulate HBA and NIC configuration, we end up having to commission twice to get updated disk and network information in MAAS. It would save a LOT of time for a large staged deployment to just collect the hardware inventory one more time at the end of the commissioning run.

Revision history for this message
Andres Rodriguez (andreserl) wrote :

@kiko,

Is the custom commissioning script enabling the storage being run /before/ the storage discovery script?

Judging by this bug it sounds like it is being run after. Can you confirm that's the case?

That said, this should not be required because you can run custom scripts before MAAS scripts which will yield what you are trying to do without having to re-commission.

Changed in maas:
status: New → Incomplete
Changed in maas:
importance: Undecided → Wishlist
Revision history for this message
Christian Reis (kiko) wrote :

Yes, the user-provided commissioning script is running last.

This has the added effect of having hardware testing fail, since it operates on old data (i.e. it thinks there are two drives, but the commissioning script just assembled them into a RAID-1).

Revision history for this message
Craig Bender (craig-bender) wrote :
Revision history for this message
Christian Reis (kiko) wrote :

Andres, is the workaround for this bug to name the script 00-aa-configure-hba.sh?

Revision history for this message
Andres Rodriguez (andreserl) wrote : Re: [Bug 1696276] Re: Comissioning scripts should trigger a hardware reinventory

The way commissioning scripts have being designed is to allow you to run
the custom script at whatever order, depending on how you name your script.

If you are to name your script to something with "lower priority" than the
MAAS provided, they will be run first, hence, addressing this issue.

On Tue, Jun 6, 2017 at 7:55 PM Christian Reis <email address hidden> wrote:

> Andres, is the workaround for this bug to name the script 00-aa-
> configure-hba.sh?
>
> --
> You received this bug notification because you are subscribed to MAAS.
> https://bugs.launchpad.net/bugs/1696276
>
> Title:
> Comissioning scripts should trigger a hardware reinventory
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/maas/+bug/1696276/+subscriptions
>
--
Andres Rodriguez (RoAkSoAx)
Ubuntu Server Developer
MSc. Telecom & Networking
Systems Engineer

Revision history for this message
Andres Rodriguez (andreserl) wrote :

I believe this is how you would update the name via the API. (I'm on a
plane so can't really verify)

maas <profile>
node-script update <old name>
name=<new name>

On Tue, Jun 6, 2017 at 8:00 PM Andres Rodriguez <email address hidden>
wrote:

> The way commissioning scripts have being designed is to allow you to run
> the custom script at whatever order, depending on how you name your script.
>
> If you are to name your script to something with "lower priority" than the
> MAAS provided, they will be run first, hence, addressing this issue.
>
>
>
> On Tue, Jun 6, 2017 at 7:55 PM Christian Reis <email address hidden> wrote:
>
>> Andres, is the workaround for this bug to name the script 00-aa-
>> configure-hba.sh?
>>
>> --
>> You received this bug notification because you are subscribed to MAAS.
>> https://bugs.launchpad.net/bugs/1696276
>>
>> Title:
>> Comissioning scripts should trigger a hardware reinventory
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/maas/+bug/1696276/+subscriptions
>>
> --
> Andres Rodriguez (RoAkSoAx)
> Ubuntu Server Developer
> MSc. Telecom & Networking
> Systems Engineer
>
--
Andres Rodriguez (RoAkSoAx)
Ubuntu Server Developer
MSc. Telecom & Networking
Systems Engineer

Revision history for this message
Christian Reis (kiko) wrote :

I am trying to think if this bug still makes sense; for instance, if your commissioning script would need to be able to pull the current hardware details from MAAS for it to correctly run. That would imply we probe hardware details twice.. but I don't know if I see a use case.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in maas:
status: Incomplete → Expired
Seyeong Kim (seyeongkim)
tags: added: sts
tags: removed: sts
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.