GithubHelp home page GithubHelp logo

redhat-sap / molecule.driver Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 112 KB

Ansible collection of roles and playbooks for molecule drivers for various cloud providers (Azure, AWS, IBM, etc) and on premise virtualisation.

License: GNU General Public License v3.0

Makefile 91.81% Shell 8.19%

molecule.driver's People

Contributors

gciavarrini avatar kksat avatar machacekondra avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

kksat

molecule.driver's Issues

data_disks creation is not idempotent

When creating data disks second time (idempotency) if there is any data exists already on managed disk, creation failing with following error

"
TASK [Create logical volume] ***************************************************
fatal: [localhost -> unpack(4.231.231.107)]: FAILED! => {"changed": false, "msg": "Sorry, no shrinking of lv-lun0 to 0 permitted."}
"

Whole disk becomes not working on OS level

"ls: cannot access 'sap': Input/output error"

ls -al gives
" ? d?????????? ? ? ? ? ? sap"

location (region) for resource group

Then resource group is created in instance_create.yml it is create in the same region (location) as indicated in molecule.yml.

This is not correct behaviour if resource group already exists in another region. Azure allows to put resources from another regions to resource group. So code should just check if resource group is created, and then use that resource group for all created resources, and not force other resources to be created in the same region, if resource group already exists.

creation of data_disks fails, resourcegroup_name undefined

creation of data_disks fails, resourcegroup_name undefined, default resource group name should be used in that case

Here is error message

"
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'resourcegroup_name'\n\nThe error appears to be in '/Users/ksatarin/.ansible/collections/ansible_collections/molecule/driver/playbooks/azure/tasks/create_managed_disk.yml': line 15, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Create managed disk\n ^ here\n"}
"

add rescue section to create playbook

add rescue section to create playbook so if instances are created and IPs are available they will be saved in molecule inventory and molecule login will work

Sync ansible-galaxy version and Makefile `install` version

There is the need to sync the version in galaxy.yml and the version used in install target of Makefile.

If galaxy.yml has version: 0.2.0 and make install is

install: build
	ansible-galaxy collection install --force molecule-driver-0.1.0.tar.gz

when executing make install command, the following error is generated:

 ansible-galaxy collection build --force
Created collection for molecule.driver at /home/runner/work/molecule.driver/molecule.driver/molecule.driver/molecule-driver-0.2.0.tar.gz
ansible-galaxy collection install --force molecule-driver-0.1.0.tar.gz
ERROR! Neither the collection requirement entry key 'name', nor 'source' point to a concrete resolvable collection artifact. Also 'name' is not an FQCN. A valid collection name must be in the format <namespace>.<collection>. Please make sure that the namespace and the collection name contain characters from [a-zA-Z0-9_] only.

Could not find molecule-driver-0.1.0.tar.gz.
make: *** [Makefile:17: install] Error 1

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.