Comments (3)
Implementing locks seems to kill performance tremendously. What used to take 20 minutes to run against 36 servers is now taking over an hour. It may be better for clients to do the refresh on their own at strategic times.
from imcsdk.
Hi @mtimm,
so I have noticed the Authorization required
error once in a while. I haven't given this the time it deserves. I will try writing a script that does a login and keeps refreshing. Will run this over-night and see if I can reproduce this. Using locks is probably a bad idea here. I will post an update as I see some results.
from imcsdk.
@vvb I can easily recreate this using the automation we have in the Tetration BU to configure nodes before we reimage them. This automation does many things but the basic breakdown is:
- Set boot order precise to be uefishell, hdd, pxe, vmedia in case the node reboots mid-configuration it will end up in uefishell instead of trying to pxe boot (because there is no hdd bootable media). This allows us to recover and configure the node in nearly 100% of the cases.
- Get bios settings.
- Set bios settings to default.
- unmount al vmedia
- Set power restore policy.
- Set platform characterization.
- Set fan policy.
- Set CIMC mgmt interface parameters.
- Get the memory (DIMM) info and verify no dimms are inoperable.
- Wait for the host to be powered on (99.9% of the time it already is).
- Configure VIC's - we have two installed in all our systems.
- Get the current storage policy.
- Set the pcie option rom.
- Clear any pinned cache on the controller.
- Clear any foreign config on the controller.
- Get the physical drive info and verify no faults exist on the drives.
- Delete all vd's and reset the pd's then ensure the drives are in unconfigured good state.
- Create the vd's, for the most part we do raid 0 so one pd == one vd. Our automation does do other forms of raid and we do raid 1 as well.
- Set the cache policies for the drives.
- Update the boot order precise to boot hdd, pxe, vmedia.
- Wait for all other nodes (we do them in groups of 36 is separate threads so they go in parallel) to complete step 20, then reboot them all.
After step 21 they install the os from a pxe server. As you can probably imagine this whole process can take 15 - 20 minutes unless a node reboots and has to then come back up to the uefishell so it can continue with the configuration on that node in which case it can take close to 30 minutes. This is longer than the session timeout so auto refresh tends to kick in and without any locking it's entirely possible to have the refresh transaction in flight and some other transaction start before the cookie has been updated.
from imcsdk.
Related Issues (20)
- _get_bios_mo_table log warning in v1 api causes TypeError
- Managed Object init tries to set unknown properties HOT 2
- biosVfTXTSupport class not supported in imcsdk HOT 3
- boot_order_precision_get shows stale info after boot_order_precision_set success HOT 4
- Python3: ModuleNotFoundError: No module named 'imccoremeta' HOT 2
- Require setuptools for building HOT 2
- boot_order_precision_get has unsolicited debug log HOT 2
- firmware_huu_update_monitor fails to login after downgrade HOT 4
- GenericMo updates result in AttributeError exception HOT 2
- valid_model_prefixes HOT 2
- pd_set_removal_undo documentation is not accurate HOT 1
- ULTM hardware type not supported. HOT 7
- XML API error when trying to update CIMC users HOT 2
- M5 Firmware upgrade fails - internal error. HOT 1
- Error while importing boot v2 python module HOT 3
- Model DN2-HW-APL-U is not in the valid_models list in imcsession.py HOT 2
- Python 3.9 Support - Element.getchildren
- Python3 error when importing imcsdk.apis.v2.server.vmedia HOT 2
- Use SSH Authentication HOT 1
- ucspython slack group missing HOT 2
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 imcsdk.