Bug 1180004
| Summary: | Moving gear from non-district node to district node will fail when set USE_PREDICTABLE_GEAR_UUIDS=true | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Jianwei Hou <jhou> |
| Component: | Pod | Assignee: | Luke Meyer <lmeyer> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.x | CC: | jokerman, libra-bugs, libra-onpremise-devel, lmeyer, mmccomas, yanpzhan |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1171002 | Environment: | |
| Last Closed: | 2015-03-05 19:56:54 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1171002 | ||
|
Description
Jianwei Hou
2015-01-08 03:13:43 UTC
*should* be fixed in online/origin at this time... Tested on devenv_5383, this bug is still reproducible. [root@ip-10-233-92-118 ~]# oo-admin-move --gear_uuid jhou-py33s-1 -i ip-10-179-168-150 URL: http://py33s-jhou.dev.rhcloud.com Login: jhou App UUID: 54afc3849c96d580ae00005f Gear UUID: 54afc4d39c96d580ae0000d2 /opt/rh/ruby193/root/usr/share/ruby/mcollective/rpc/client.rb:972:in `process_results_with_block': Input gear_uuid did not pass validation: value should match (?-mix:^[a-zA-Z0-9]+$) (MCollective::InvalidRPCData) from /opt/rh/ruby193/root/usr/share/ruby/mcollective/rpc/client.rb:891:in `block in call_agent' from /opt/rh/ruby193/root/usr/share/ruby/mcollective/client.rb:212:in `block in start_receiver' from /opt/rh/ruby193/root/usr/share/ruby/timeout.rb:69:in `timeout' from /opt/rh/ruby193/root/usr/share/ruby/mcollective/client.rb:209:in `start_receiver' from /opt/rh/ruby193/root/usr/share/ruby/mcollective/client.rb:164:in `unthreaded_req' from /opt/rh/ruby193/root/usr/share/ruby/mcollective/client.rb:150:in `req' from /opt/rh/ruby193/root/usr/share/ruby/mcollective/rpc/client.rb:887:in `call_agent' from /opt/rh/ruby193/root/usr/share/ruby/mcollective/rpc/client.rb:264:in `method_missing' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.31.1/lib/openshift/mcollective_application_container_proxy.rb:2873:in `block in get_gear_uid' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.31.1/lib/openshift/mcollective_application_container_proxy.rb:2440:in `rpc_exec' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.31.1/lib/openshift/mcollective_application_container_proxy.rb:2872:in `get_gear_uid' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.31.1/lib/openshift/mcollective_application_container_proxy.rb:1947:in `move_gear' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.31.1/lib/openshift/mcollective_application_container_proxy.rb:1937:in `block in move_gear_secure' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-controller-1.34.1/app/models/lock.rb:62:in `run_in_app_lock' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.31.1/lib/openshift/mcollective_application_container_proxy.rb:1934:in `move_gear_secure' from /usr/sbin/oo-admin-move:114:in `<main>' Agent code was needlessly re-validating uuid with an outdated regex. https://github.com/openshift/origin-server/pull/6039 Verified on devenv_5389. [root@ip-10-41-166-24 ~]# oo-admin-move --gear_uuid jhou-php1s-1 -i ip-10-95-206-57 URL: http://php1s-jhou.dev.rhcloud.com Login: jhou App UUID: 54b4d29309744e6927000001 Gear UUID: 54b4d2e509744e6927000025 DEBUG: Source district uuid: NONE DEBUG: Destination district uuid: NONE Error moving gear. Move gear only allowed from non-districted/districted node to districted node. |