Title: instantiate VM from template · Issue #36 · python-oca/python-oca · GitHub
Open Graph Title: instantiate VM from template · Issue #36 · python-oca/python-oca
X Title: instantiate VM from template · Issue #36 · python-oca/python-oca
Description: Hi, I am new on this project and I am trying to using it to instantiate and deploy some VMs from an existing template. I managed to retrieve the template details from OpenNebula but I have some problems to instantiate a VM. This is my py...
Open Graph Description: Hi, I am new on this project and I am trying to using it to instantiate and deploy some VMs from an existing template. I managed to retrieve the template details from OpenNebula but I have some pro...
X Description: Hi, I am new on this project and I am trying to using it to instantiate and deploy some VMs from an existing template. I managed to retrieve the template details from OpenNebula but I have some pro...
Opengraph URL: https://github.com/python-oca/python-oca/issues/36
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"instantiate VM from template","articleBody":"Hi,\nI am new on this project and I am trying to using it to instantiate and deploy some VMs from an existing template.\nI managed to retrieve the template details from OpenNebula but I have some problems to instantiate a VM.\nThis is my python code:\n\n```\nvm_templ = oca.VmTemplatePool(client)\nvm_templ.info()\n\nfor templ in vm_templ:\n if templ.name == \"Ubuntu 14.04 - KVM\":\n t_xml = ET.tostring(templ.xml)\n n_vm = oca.VmTemplate(t_xml, client)\n n_vm.instantiate(\"oca-test\")\n```\n\nHowever the library return me this error:\n\n```\nTraceback (most recent call last):\n File \"test.py\", line 26, in \u003cmodule\u003e\n n_vm.instantiate(\"oca-test\")\n File \"build/bdist.linux-x86_64/egg/oca/template.py\", line 89, in instantiate\n File \"build/bdist.linux-x86_64/egg/oca/__init__.py\", line 113, in call\n File \"/usr/lib/python2.7/xmlrpclib.py\", line 1233, in __call__\n return self.__send(self.__name, args)\n File \"/usr/lib/python2.7/xmlrpclib.py\", line 1591, in __request\n verbose=self.__verbose\n File \"/usr/lib/python2.7/xmlrpclib.py\", line 1273, in request\n return self.single_request(host, handler, request_body, verbose)\n File \"/usr/lib/python2.7/xmlrpclib.py\", line 1306, in single_request\n return self.parse_response(response)\n File \"/usr/lib/python2.7/xmlrpclib.py\", line 1482, in parse_response\n return u.close()\n File \"/usr/lib/python2.7/xmlrpclib.py\", line 794, in close\n raise Fault(**self._stack[0])\nxmlrpclib.Fault: \u003cFault -501: 'Parameter that is supposed to be integer is not'\u003e\n\n```\n\nI printed my t_xml variables and this is the output:\n\n```\n\u003cVMTEMPLATE\u003e\u003cID\u003e109\u003c/ID\u003e\u003cUID\u003e15\u003c/UID\u003e\u003cGID\u003e0\u003c/GID\u003e\u003cUNAME\u003exxxxx\u003c/UNAME\u003e\u003cGNAME\u003eoneadmin\u003c/GNAME\u003e\u003cNAME\u003eUbuntu 14.04 - KVM\u003c/NAME\u003e\u003cPERMISSIONS\u003e\u003cOWNER_U\u003e1\u003c/OWNER_U\u003e\u003cOWNER_M\u003e1\u003c/OWNER_M\u003e\u003cOWNER_A\u003e0\u003c/OWNE\nR_A\u003e\u003cGROUP_U\u003e0\u003c/GROUP_U\u003e\u003cGROUP_M\u003e0\u003c/GROUP_M\u003e\u003cGROUP_A\u003e0\u003c/GROUP_A\u003e\u003cOTHER_U\u003e0\u003c/OTHER_U\u003e\u003cOTHER_M\u003e0\u003c/OTHER_M\u003e\u003cOTHER_A\u003e0\u003c/OTHER_A\u003e\u003c/PERMISSIONS\u003e\u003cREGTIME\u003e1476705414\u003c/REGTIME\u003e\u003cTEMPLATE\u003e\u003cCONTEXT\u003e\u003cETH0_C\nONTEXT_FORCE_IPV4\u003e$NETWORK[CONTEXT_FORCE_IPV4,NETWORK_ID=\"2\"]\u003c/ETH0_CONTEXT_FORCE_IPV4\u003e\u003cETH0_DNS\u003e$NETWORK[DNS,NETWORK_ID=\"2\"]\u003c/ETH0_DNS\u003e\u003cETH0_GATEWAY\u003e$NETWORK[GATEWAY,NETWORK_ID=\"2\"]\u003c/ETH0_GATE\nWAY\u003e\u003cETH0_GATEWAY6\u003e$NETWORK[GATEWAY6,NETWORK_ID=\"2\"]\u003c/ETH0_GATEWAY6\u003e\u003cETH0_IP\u003e$NIC[IP,NETWORK_ID=\"2\"]\u003c/ETH0_IP\u003e\u003cETH0_IPV6\u003e$NIC[IP6_GLOBAL,NETWORK_ID=\"2\"]\u003c/ETH0_IPV6\u003e\u003cETH0_MASK\u003e$NETWORK[NETWORK_M\nASK,NETWORK_ID=\"2\"]\u003c/ETH0_MASK\u003e\u003cETH0_NETWORK\u003e$NETWORK[NETWORK_ADDRESS,NETWORK_ID=\"2\"]\u003c/ETH0_NETWORK\u003e\u003cNETWORK\u003eYES\u003c/NETWORK\u003e\u003cSSH_PUBLIC_KEY\u003e\u003c/SSH_PUBLIC_KEY\u003e\u003c/CONTEXT\u003e\u003cCPU\u003e1\u003c/CPU\u003e\u003cDISK\u003e\u003cIMAGE\u003eUbuntu-14.04\u003c/IMAGE\u003e\u003cIMAGE_UNAME\u003exxxxx\u003c/IMAGE_UNAME\u003e\u003c/DISK\u003e\u003cFROM_APP\u003e53e7c1b28fb81d6a69000003\u003c/FROM_APP\u003e\u003cFROM_APP_NAME\u003eUbuntu 14.04\n - KVM\u003c/FROM_APP_NAME\u003e\u003cGRAPHICS\u003e\u003cLISTEN\u003e0.0.0.0\u003c/LISTEN\u003e\u003cTYPE\u003evnc\u003c/TYPE\u003e\u003c/GRAPHICS\u003e\u003cLOGO\u003eimages/logos/ubuntu.png\u003c/LOGO\u003e\u003cMEMORY\u003e2048\u003c/MEMORY\u003e\u003cNIC\u003e\u003cMODEL\u003ee1000\u003c/MODEL\u003e\u003cNETWORK\u003eprivate-vnet\u003c/NETWO\nRK\u003e\u003cNETWORK_UNAME\u003eoneadmin\u003c/NETWORK_UNAME\u003e\u003c/NIC\u003e\u003cOS\u003e\u003cARCH\u003ex86_64\u003c/ARCH\u003e\u003c/OS\u003e\u003cSUNSTONE_CAPACITY_SELECT\u003eYES\u003c/SUNSTONE_CAPACITY_SELECT\u003e\u003cSUNSTONE_NETWORK_SELECT\u003eYES\u003c/SUNSTONE_NETWORK_SELECT\u003e\u003c/TEMPL\nATE\u003e\u003c/VMTEMPLATE\u003e\n```\n\nWhat I am doing wrong?\n\nThanks \n","author":{"url":"https://github.com/dipietro-salvatore","@type":"Person","name":"dipietro-salvatore"},"datePublished":"2016-10-27T10:29:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/36/python-oca/issues/36"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:aad4cc08-defb-f721-a54c-a389917d4c59 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9FB8:34CC4F:2E784F0:3E5CE5D:697ADF4A |
| html-safe-nonce | 774591083042720399ec6de0994f28ed1ab38116bfecdb8e149b3ffc2fb11a95 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkI4OjM0Q0M0RjoyRTc4NEYwOjNFNUNFNUQ6Njk3QURGNEEiLCJ2aXNpdG9yX2lkIjoiNjE4Nzg3NDYzNTAxNjM1NDAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7bf2322cdea6cfb5cfb032218be7e575847c286ad831c3cf4ef9a08b2c7d7eb3 |
| hovercard-subject-tag | issue:185630630 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-oca/python-oca/36/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7bfc43b801e11f3ab6463d6da5c785ef30c504c94642f2964cee3b27acfea88d/python-oca/python-oca/issues/36 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7bfc43b801e11f3ab6463d6da5c785ef30c504c94642f2964cee3b27acfea88d/python-oca/python-oca/issues/36 |
| og:image:alt | Hi, I am new on this project and I am trying to using it to instantiate and deploy some VMs from an existing template. I managed to retrieve the template details from OpenNebula but I have some pro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dipietro-salvatore |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4af1ba0e68200258a80b0c5ab34f12a78bf48372a377a11e14eb668863c03b3a |
| turbo-cache-control | no-preview |
| go-import | github.com/python-oca/python-oca git https://github.com/python-oca/python-oca.git |
| octolytics-dimension-user_id | 12862817 |
| octolytics-dimension-user_login | python-oca |
| octolytics-dimension-repository_id | 37661093 |
| octolytics-dimension-repository_nwo | python-oca/python-oca |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 37661093 |
| octolytics-dimension-repository_network_root_nwo | python-oca/python-oca |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 353b231ffaec2de44db15b2e82887804ede7c21e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width