Bug 1505974
Summary: | Satellite only deploys VMs on RHV compute resource in thin storage mode | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Daniele <dconsoli> | ||||
Component: | Compute Resources - RHEV | Assignee: | satellite6-bugs <satellite6-bugs> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | Katello QA List <katello-qa-list> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.2.12 | CC: | aperotti, bbuckingham, inecas, mjankula, oprazak, orabin, pmoravec, rbobek, sjagtap | ||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||
Target Release: | Unused | ||||||
Hardware: | x86_64 | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2017-11-02 11:05:20 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: | 1541321 | ||||||
Attachments: |
|
Description
Daniele
2017-10-24 17:19:44 UTC
Hi all, the problem here seems to be in the API call the Satellite passes to RHV. The POST line contains this: POST /ovirt-engine/api/v3/vms HTTP/1.1 But it should look like this: POST /ovirt-engine/api/vms?clone=true HTTP/1.1 When adding the '?clone=true' part to the call, Fulvio (on-site consultant) was able to provision the vm correctly with preallocated disk policy. Here is the way how to capture the API calls. Settings must be done on RHV-M server: # yum -y install mod_security # vim /etc/httpd/conf/httpd.conf Add following lines: SecRuleEngine on SecAuditEngine on SecAuditLog /var/log/httpd/satellite-api.log SecRequestBodyAccess on SecAuditLogParts ABIFHZ SecDefaultAction "nolog,noauditlog,allow,phase:2" SecRule REQUEST_METHOD "^POST$" "chain,allow,phase:2,id:123" SecRule REQUEST_URI ".*" "auditlog" # systemctl restart httpd After provisioning from Satellite, /var/log/httpd/satellite-api.log will contain the API call. Good idea is to search for the vm name because the file contains many information. WORKAROUND: Indeed, we found that the oVirt api seems to accept "clone=true" as a query string parameter and not as a field in the xml describing the VM. Hence, on the ovirt console system we added the following rewrite rule: RewriteEngine on RewriteCond %{REQUEST_METHOD} POST RewriteRule "^/ovirt-engine/api/vms$" "ajp://127.0.0.1:8702/ovirt-engine/api/vms?clone=true" [P,QSA] General consensus is the remaining bits are due to https://bugzilla.redhat.com/show_bug.cgi?id=1452534 - could you pls. prepare a HF / build to test the precompiled js code, Ivan? |