Giter Club home page Giter Club logo

Comments (9)

maugustosilva avatar maugustosilva commented on August 26, 2024

Hello @danboid, thanks for opening the issue. I tried to address at least the first initial questions that you had in an update version of https://github.com/ibmcb/cbtool/wiki/HOWTO:-Preparing-your-cloud-to-be-driven-by-CBTOOL.

Questions left unanswered, which will be added as part of the FAQ (will get around it before the week ends)

  • What is :sut
  • OSK_LOGIN vs MAIN_LOGIN
  • How to use build_cloud_config_file_from_env.sh

As for the rest of your questions, can you confirm that these are appropriately answered with this new documentation update?

from cbtool.

danboid avatar danboid commented on August 26, 2024

Hi @maugustosilva

Thanks for updating the cbtool HOWTO. I now know the difference between OS and OSK but, apart from those questions you say have yet to be answered (in the FAQ), I still need to know:

Can we use IDs instead of names for all cbtool OS config values?

I don't think I understand the difference between OSK_SSH_KEY_NAME and
OSK_KEY_NAME or how they should be used. According to the comments in the example config file, OSK_KEY_NAME adds (injects) a private key "from the cloud" into the VMs. That's very vague.

I don't think I really need to know what the :sut suffix is about nor do I probably need to know how to use build_cloud_config_file_from_env.sh but I'm presuming from your response that I don't actually need to define MAIN_LOGIN if I'm using Openstack? The example private config file for Openstack in the HOWTO is missing all of the user defined variable definitions (eg MAIN_LOGIN, MAIN_USERNAME, STARTUP_CLOUD etc.) so the HOWTO gives the impression that these might not be needed, at least not all of them.

What version of Openstack do you use for your testing?

Thanks

from cbtool.

maugustosilva avatar maugustosilva commented on August 26, 2024

Hello again @danboid

  1. KEY_NAME vs SSH_KEY_NAME. Please help me improve the answer on https://github.com/ibmcb/cbtool/wiki/FAQ-C#cq5 Do you have suggestions to make it more clear (or please suggest another place where I should link to it).

  2. I have run a few tests, and finally realized that MAIN_LOGIN is not used at all (OSK_LOGIN is). I will submit a pull request to remove it altogether from the code.

  3. Tested Openstack version:

root@osk4cbvm1:~# nova-manage --version
20.1.0
root@osk4cbvm1:~# cinder-manage --version
16.0.0
root@osk4cbvm1:~# glance-manage --version
20.0.0
root@osk4cbvm1:~# keystone-manage --version
16.1.0

from cbtool.

danboid avatar danboid commented on August 26, 2024

Hi @maugustosilva

For both The OSK_KEY_NAME and The OSK_SSH_KEY_NAME I am presuming, but I'm not sure they should both take the form of paths to public keys or are the referring to Openstack SSH key object names / IDs or can we paste the full public key, in quotes? Example values for both would make this clearer.

"CA5: UPDATE: CBTOOL can now automatically create SSH keys. A typical user will not have to deal with these complexities anymore."

How does the user get cbtool to auto create SSH keys, particularly when using Openstack?

Should we be able to test the basic usage of cbtool for Openstack using stock Ubuntu images or are custom images required even in the most basic test cases? Do specific packages or config files have to be baked into the images for cbtool to function?

Thanks

from cbtool.

maugustosilva avatar maugustosilva commented on August 26, 2024

Thank you, I can see now how confusing it was. I rewrote the answer to CQ5 in the FAQ, please take a look, and let me know if it is clearer now.

Yeah, basic usage can tested with any recent "cloud-image", as exemplified in https://github.com/ibmcb/cbtool/wiki/HOWTO:-Preparing-a-VM-to-be-used-with-CBTOOL-on-a-real-cloud (item 2)

from cbtool.

danboid avatar danboid commented on August 26, 2024

That explains those 2 SSH options better. It seems you have removed the text about cbtool being able to auto create ssh keys. I presume that feature has been deprecated?

It it always safe to use Openstack IDs instead of their names for all OSK config values?

from cbtool.

maugustosilva avatar maugustosilva commented on August 26, 2024

No, no, this feature (creating SSH keys on the cloud, and injecting it on images via cloud-init) is now default for all clouds (except PDM, NOP and SIM, for obvious reasons).

Yes, using the openstack IDs instead of names should work, albeit I must admit that I am not testing this way myself.

from cbtool.

danboid avatar danboid commented on August 26, 2024

So should we should be able to get away without defining any of the Openstack SSH options at all in the private config file and cbtool will autoconfigure all the keys for us?

How do we specify the image to use for the VMs? There doesn't seem to be an example for how to do this in the default private config file, not for Openstack at least. As I said i the first post:

https://github.com/ibmcb/cbtool/wiki/HOWTO:-Preparing-your-cloud-to-be-driven-by-CBTOOL

Under the generic info section says we have to specify the name or id of the base image we are using to create the VMs but I don't see that specified in the example cloud_definitions.txt file, at least not for Openstack. Maybe that is defined elsewhere?

Currently, the generic info section of that HOWTO says an unconfigured image must be specified but there is no mention of having to specify an image in the Openstack required details section.

from cbtool.

danboid avatar danboid commented on August 26, 2024

@maugustosilva

I think it might also be helpful to split the current example private config file into several smaller, cloud specific config files with updated comments that cover the questions I've been asking, that are now mostly covered in the HOWTOs. That would answer my question about which options are required to be defined for each cloud platform.

from cbtool.

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.