Comments (3)
I added
raise Error(ms) before line 981 to see what ms is
GXX-XXXX-XXX-SNXXXX,Operating
so the split should work. Not understanding why this does not work
from ansible-power-hmc.
Ok looks like the profiles i tried to list wat lpm-ed but never booted on a managed systems. this only retruns the state and not the name of the managed system.
I fixed it by excluding the "unknowns" for the inventory
I also changed get_MS_names_by_lpar_name
def get_MS_names_by_lpar_name(hmc_obj, lpar_name):
mss = hmc_obj.list_all_managed_system_details("name,state")
ms_list = []
for ms in mss:
if len(ms.split(',')) < 2:
if ms == "Off":
continue
else:
raise Exception("Only one Argument+" + ms)
ms_name, state = ms.split(',')
if state == 'Operating':
lpar_names = hmc_obj.list_all_lpars_details(ms_name, "name")
if lpar_name in lpar_names:
ms_list.append(ms_name)
return ms_list
If it only gets "Off" that it continues to the next loop.
from ansible-power-hmc.
This is an issue, we will fix it.
from ansible-power-hmc.
Related Issues (20)
- powervm_lpar_instance generates a "EPOW_SUS_CHRP" environmental error in the error log and fails to shut the LPAR down HOT 4
- power_system module - accept MTMS as system name HOT 1
- vios module - fails with lpar_env=vioserver in settings HOT 1
- HMC update/upgrade from latest at ibmwebsite HOT 2
- VIOS Update HOT 1
- ibm.power_hmc.hmc_command doesn't provide command_output HOT 1
- Documentation shows update instead of update_proc_mem
- powervm_dlpar shows "changed" as result even if nothing was changed
- Unable to install latest fix for HMC, aka MF71299 HOT 4
- New module to manage "Cloud connector"
- Missing poolID parameter with modules ibm.power_hmc.powervm_lpar_migration HOT 1
- Error: Missing prerequisite lxml package. Hint pip install lxml HOT 1
- powervm_lpar_instance incorrectly requires proc_unit to be a multiple of the minimum proc unit per vp (0.05 fince Power7+) HOT 3
- Cannot change max_webui_login_attempts and webui_login_suspend_time for specific user
- AIX Installation stalls at HMC code 0c31 HOT 8
- Add action_groups into meta/runtime.yml
- hmc_update_upgrade disk pathing isn't correct HOT 2
- [ Bug / Feature ] Improve idempotency of modules HOT 1
- powervm_lpar_instance state=facts doesn't show NPIV WWN's
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 ansible-power-hmc.