Comments (7)
My broker_settings.yaml
:
# Broker settings
debug: True
inventory_file: "inventory.yaml"
# Host Settings
host_username: "root"
host_password: "redhat"
# Provider settings
AnsibleTower:
instances:
- rhv:
base_url: "https://infra-ansible-tower-01.infra.ourdomain.com/"
# username: "ogajduse"
# password: ""
token: mytoken
default: True
- osp:
base_url: "https://infra-ansible-tower-01.infra.ourdomain.com/"
# username: "ogajduse"
# password: ""
token: mytoken
inventory: "satlab-osp-01-inventory"
- testing:
base_url: "https://dhcp-2-80.vms.ourdomain.com/"
#username: ""
#password: ""
inventory: "satlab-rhv-02-inventory"
username: ogajduse
password: ""
#default: True
release_workflow: "remove-vm"
extend_workflow: "extend-vm"
workflow_timeout: 3600
#results_limit: 50
from broker.
my venv:
awxkit==17.1.0
broker @ file:///home/ogajduse/qa_repos/satelliteqe-github/broker
certifi==2020.12.5
chardet==4.0.0
click==7.1.2
dynaconf==3.1.4
idna==2.10
logzero==1.7.0
PyYAML==5.4.1
requests==2.25.1
ssh2-python==0.26.0
urllib3==1.26.4
from broker.
I found out that the _act
method gets called first with proivder AnsibleTower
and method execute
. Then it is called with same provider and method None
(Pdb) ll
121 def _checkout(self):
122 """checkout one or more VMs
123
124 :return: List of Host objects
125 """
126 hosts = []
127 if not self._provider_actions:
128 raise self.BrokerError("Could not determine an appropriate provider")
129 for action in self._provider_actions.keys():
130 provider, method = PROVIDER_ACTIONS[action]
131 logger.info(f"Using provider {provider.__name__} to checkout")
132 try:
133 -> host = self._act(provider, method, checkout=True)
134 except exceptions.ProviderError:
135 host = None
136 logger.debug(f"host={host}")
137 if host:
138 hosts.append(host)
139 logger.info(f"{host.__class__.__name__}: {host.hostname}")
140 return hosts
(Pdb) PROVIDER_ACTIONS
{'workflow': (<class 'broker.providers.ansible_tower.AnsibleTower'>, 'execute'), 'job_template': (<class 'broker.providers.ansible_tower.AnsibleTower'>, 'execute'), 'template': (<class 'broker.providers.ansible_tower.AnsibleTower'>, None), 'test_action': (<class 'broker.providers.test_provider.TestProvider'>, 'test_action'), 'inventory': (<class 'broker.providers.ansible_tower.AnsibleTower'>, None)}
(Pdb) action
'template'
(Pdb) provider
<class 'broker.providers.ansible_tower.AnsibleTower'>
(Pdb) print(method)
None
from broker.
@JaryN what is the value of self._provider_actions
in the reproducer?
from broker.
A reproducer that doesn't take so long time is
broker --log-level debug checkout --template deploy-sat-jenkins
from broker.
A reproducer that doesn't take so long time is
broker --log-level debug checkout --template deploy-sat-jenkins
templates are not valid checkout actions for AnsibleTower, which is why they aren't listed under the help output for checkout
from broker.
I did not realized that I reported duplicate of the issue that I reported earlier.
As I stated in #136, We agreed with @rdrazny that --template
is a valid option that can be passed to a workflow.
Do we know what is causing broker to fail with such error?
from broker.
Related Issues (20)
- Ansible Automation Platform API path changes HOT 1
- Failed to login in the non-default port guest HOT 2
- BUG: `AssertionError: can only join a child process` when trying to run the process in the background HOT 1
- ssh timeouts regardless of desired timeout specified HOT 1
- AttributeError is raised when loading host with more complex data in `_broker_args` `from_inventory`
- [RFE] Add a function to transfer directory/files from one host to another at specific location
- BUG: `sftp_write` fails if the destination file does not exist in the container
- Properly handle return code after error HOT 5
- [RFE] allow custom environmental variables to be passed to containers/hosts HOT 2
- Implement smarter auth source identification for AnsibleTower HOT 1
- new broker 0.2.10 fails to checkout some instances HOT 1
- Unauthorized (401) - During checkin dynaconf envars are overridden by empty values from settings HOT 6
- Make inventory_file have a sane default, and not required
- Return of AnsibleTower workflows and job-templates should include inventory and description HOT 1
- from_inventory ContentHostError when hostnames are missing in inventory file HOT 1
- 'Container' object has no attribute 'extend_vm'
- 'AnsibleTower' object has no attribute 'inventory' HOT 1
- Test suite needs to be updated to look for broker_settings.yaml in ~/.broker
- Add a simple command to print workflows HOT 1
- Checkin fails with 0.3.2 and using a single provider
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from broker.