There's no way to set a custom target prompt string

Bug #1028512 reported by Abner Silva
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LAVA Dispatcher
Fix Released
Medium
Spring Zhang

Bug Description

Currently, the lava-dispatcher component set the target image (the one that will run the tests, not the master) to have a hostname called "linaro", by changing the /etc/hostname file. It also expects that the prompt string to have the 'linaro' string that it has set.

However, in some cases and images, we might want to set a different string from 'linaro'. A custom one that will represent better that target image. Thus, I suggest to have a device config option where we could set the target hostname depending on the image/device/target.

A configuration var called HOSTNAME_STR would be enough, as can be seen here: http://bazaar.launchpad.net/~abnerf/+junk/lava-dispatcher-custom/revision/351

However, I believe that the best way to implement it is changing the name of the current property 'hostname' defined inside the client/base.py. This property returns not the hostname, but the defined device name (which is the file name that represents the device inside the dispatcher configuration dir), which is used by conmux.

I believe that we could use the 'hostname' property to return the real defined hostname (as I suggested above by using HOSTNAME_STR) and create a new property that would represent the device name created inside the dispatcher config dir (which today is the hostname property). I guess it would make things more consistent and clear.

Related branches

Revision history for this message
Andy Doan (doanac) wrote :

Our device-defaults.conf has an option:

 TESTER_STR = root@linaro

Could you not update that to do what you are wanting?

Revision history for this message
Abner Silva (abnerf) wrote :

That's part of the solution, indeed, but the dispatcher keeps changing the hostname to 'linaro'. It's hardcoded in there.

Revision history for this message
Andy Doan (doanac) wrote : Re: [Bug 1028512] Re: There's no way to set a custom target prompt string

On 07/24/2012 12:37 PM, Abner Silva wrote:
> That's part of the solution, indeed, but the dispatcher keeps changing
> the hostname to 'linaro'. It's hardcoded in there.

This merge should help that issue:

https://code.launchpad.net/~qzhang/lava-dispatcher/add-tester_hostname/+merge/117752

Spring Zhang (qzhang)
Changed in lava-dispatcher:
assignee: nobody → Spring Zhang (qzhang)
importance: Undecided → Medium
milestone: none → 2012.08
status: New → Fix Committed
Fathi Boudra (fboudra)
Changed in lava-dispatcher:
status: Fix Committed → Fix Released
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.