~dannf/canonical-server-hwe-utils:update-conserver-fixes

Last commit made on 2021-05-04
Get this branch:
git clone -b update-conserver-fixes https://git.launchpad.net/~dannf/canonical-server-hwe-utils
Only dann frazier can upload to this branch. If you are dann frazier please log in for upload directions.

Branch merges

Branch information

Name:
update-conserver-fixes
Repository:
lp:~dannf/canonical-server-hwe-utils

Recent commits

47befa8... by dann frazier

update_conserver.sh: Add a check that we're in the correct directory

bdcd8bd... by dann frazier

update_conserver.sh: Use a shallow clone of the scalebot repo

We don't need any history, so enable this optimization to speed up the clone.

eeaa2cb... by dann frazier

update_conserver.sh: stop/start conserver-server instead of reloading

Reloading always seems to leave the server disabled. Seems like a bug,
but I haven't spent anytime diagnosing it. For now, let's just stop/start
it so that it is reliable.

71db7be... by dann frazier

update_conserver.sh: Update to work with new consolidated lab names

We got rid of the devel/production variants in the scalebot repo.

d77eb99... by dann frazier

labkey: console: Add IPMI serial-over-lan support

In labs that do not have a conserver, support connecting to IPMI BMCs
directly. Unlike conserver, IPMI SoL does not support multiple users
at the same time, so this also adds a "force" argument to the console
subcommand that will cause labkey to first disconnect any existing users.

38d331f... by Alexandre Erwin Ittner

labkey: add command "show-owners"

This command will list the owner-* tags for all machines from a given
lab in a grep-friendly format.

In the simplest form, just show all owners:
    $ labkey show-owners 1ss

We can also use it for finding the machines assigned to a particular team:
    $ labkey show-owners 1ss | grep anbox

... or unowned machines:
    $ labkey show-owners 1ss | grep -v owner-

b9ef3a8... by dann frazier

labkey: Remove duplicate code, causing console to restart after exit

For the longest time I've been annoyed that I have to send console's
exit sequence (~.) twice to make it exit when called via labkey. I
just assumed there was some weird interaction between the labkey and
console process that caused it. Nope. I had literally just duplicated
the callout to console - presumably a debug cut & paste gone wrong.

28e824d... by dann frazier

installer-test-matrix: Add hirsute

8a537de... by Alexandre Erwin Ittner

Allow reading Atom feed data from standard input

Make parameter "-r" optional so, if not given, data will be read from
stdin. This allows the user to pipe data into the script and capture
the output with a single line:

curl http://user:pwd@jenkins-addr:8080/rssAll | ./jenkins-rss-to-trello-md.py | xsel -ib

2e04179... by dann frazier

pre-commit: Don't use mutable references

pre-commit complains about 'rev: master' not being supported:

[WARNING] The 'rev' field of repo 'https://github.com/psf/black' appears to be a mutable reference (moving tag / branch). Mutable references are never updated after first install and are not supported. See https://pre-commit.com/#using-the-latest-version-for-a-repository for more details.
[WARNING] The 'rev' field of repo 'https://gitlab.com/pycqa/flake8' appears to be a mutable reference (moving tag / branch). Mutable references are never updated after first install and are not supported. See https://pre-commit.com/#using-the-latest-version-for-a-repository for more details.

Apparently we should just run 'pre-commit autoupdate' periodically, and
commit the config it generates.