Code Monkey home page Code Monkey logo

Comments (4)

smalleni avatar smalleni commented on May 20, 2024

@wilkins11 faced this.

from quads.

sadsfae avatar sadsfae commented on May 20, 2024

We have a way to do this on the QUADS side and can override the choosing of the first node, we just need to discuss and finalize an easier way to extend this to equipment that QUADS provides to Engineers.

@smalleni would a Foreman host variable (editable by users in the UI or hammer CLI) be adequate?

You could set something like uc_choice: c01-h01-r620.example.com and if it's not false it will extrapolate that string and pick that as your undercloud (assuming it's one of your assigned hosts).

from quads.

sadsfae avatar sadsfae commented on May 20, 2024

Update here per our bi-weekly DevOps call - we will simply use the undercloud: true/false host parameter here to exclude any host that has this from the generated instackenv.json file.

This has two main benefits:

  • Lets users pick their undercloud or swap it for another host if needed (set in Foreman)
  • lets users exclude machines to use for other purposes (e.g. standalone ceph).

from quads.

sadsfae avatar sadsfae commented on May 20, 2024

We're going to rework this a bit, we currently have a Foreman host parameter called nullos: true/false and this does mostly the same thing we just need to rework the logic behind it.

The idea is that if you set nullos: false on any of your hosts they will have some playbooks run that swap the PXE order back to Foreman and remove them from the instackenv.json.

You are then free to use that host (or hosts) as your undercloud any anything else.

So in summary:

  • Set nullos: false in the Foreman host parameter to pick a machine as your undercloud.
  • Set nullos: false in the Foreman host parameter for any other hosts you simply want excluded from instackenv.json for other purposes.

You can set this in the Foreman UI or via hammer below.

hammer host set-parameter --host c02-h23-r620.rdu.openstack.example.com --name nullos --value false

from quads.

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.