{"action":"created","issue":{"url":"https://api.github.com/repos/CiscoCloud/mantl/issues/1683","repository_url":"https://api.github.com/repos/CiscoCloud/mantl","labels_url":"https://api.github.com/repos/CiscoCloud/mantl/issues/1683/labels{/name}","comments_url":"https://api.github.com/repos/CiscoCloud/mantl/issues/1683/comments","events_url":"https://api.github.com/repos/CiscoCloud/mantl/issues/1683/events","html_url":"https://github.com/CiscoCloud/mantl/pull/1683","id":164866692,"number":1683,"title":"lvm: fix parsing values of absolute amounts for volumes","user":{"login":"avnik","id":153538,"avatar_url":"https://avatars.githubusercontent.com/u/153538?v=3","gravatar_id":"","url":"https://api.github.com/users/avnik","html_url":"https://github.com/avnik","followers_url":"https://api.github.com/users/avnik/followers","following_url":"https://api.github.com/users/avnik/following{/other_user}","gists_url":"https://api.github.com/users/avnik/gists{/gist_id}","starred_url":"https://api.github.com/users/avnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avnik/subscriptions","organizations_url":"https://api.github.com/users/avnik/orgs","repos_url":"https://api.github.com/users/avnik/repos","events_url":"https://api.github.com/users/avnik/events{/privacy}","received_events_url":"https://api.github.com/users/avnik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CiscoCloud/mantl/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-11T15:33:21Z","updated_at":"2016-07-15T10:08:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CiscoCloud/mantl/pulls/1683","html_url":"https://github.com/CiscoCloud/mantl/pull/1683","diff_url":"https://github.com/CiscoCloud/mantl/pull/1683.diff","patch_url":"https://github.com/CiscoCloud/mantl/pull/1683.patch"},"body":"This fix also is a candidate to stable branch 1.2\r\n\r\n- [x] Installs cleanly on a fresh build of most recent master branch\r\n- [ ] Upgrades cleanly from the most recent release\r\n- [ ] Updates documentation relevant to the changes\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CiscoCloud/mantl/issues/comments/232912865","html_url":"https://github.com/CiscoCloud/mantl/pull/1683#issuecomment-232912865","issue_url":"https://api.github.com/repos/CiscoCloud/mantl/issues/1683","id":232912865,"user":{"login":"siddharthist","id":4294323,"avatar_url":"https://avatars.githubusercontent.com/u/4294323?v=3","gravatar_id":"","url":"https://api.github.com/users/siddharthist","html_url":"https://github.com/siddharthist","followers_url":"https://api.github.com/users/siddharthist/followers","following_url":"https://api.github.com/users/siddharthist/following{/other_user}","gists_url":"https://api.github.com/users/siddharthist/gists{/gist_id}","starred_url":"https://api.github.com/users/siddharthist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siddharthist/subscriptions","organizations_url":"https://api.github.com/users/siddharthist/orgs","repos_url":"https://api.github.com/users/siddharthist/repos","events_url":"https://api.github.com/users/siddharthist/events{/privacy}","received_events_url":"https://api.github.com/users/siddharthist/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T10:08:32Z","updated_at":"2016-07-15T10:08:32Z","body":"I got an error. Here's my config:\r\n```\r\nmantl > cat roles/docker/defaults/main.yml | grep data_volume_size\r\ndocker_lvm_data_volume_size: 10G\r\ndocker_lvm_data_volume_size_min: 2G\r\ndocker_volume_size: \"{{ docker_lvm_data_volume_size }}\"\r\n```\r\nAnd the message:\r\n```\r\nTASK: [docker | process with mantl storage setup] ***************************** \r\nfailed: [lb0-worker-002] => {\"changed\": true, \"cmd\": \"/usr/bin/mantl-storage-setup\", \"delta\": \"0:00:00.176288\", \"end\": \"2016-07-15 10:04:21.784482\", \"rc\": 1, \"start\": \"2016-07-15 10:04:21.608194\", \"warnings\": []}\r\nstderr: Traceback (most recent call last):\r\n  File \"/usr/bin/mantl-storage-setup\", line 296, in <module>\r\n    main()\r\n  File \"/usr/bin/mantl-storage-setup\", line 289, in main\r\n    iterate_config(\"volume\", process_volume, cp)\r\n  File \"/usr/bin/mantl-storage-setup\", line 277, in iterate_config\r\n    fun(each, cp)\r\n  File \"/usr/bin/mantl-storage-setup\", line 147, in process_volume\r\n    size, size_opt, size_unit = parse_size(size)\r\n  File \"/usr/bin/mantl-storage-setup\", line 135, in parse_size\r\n    return int(m.group(1)), \"L\", m.group(2)\r\nIndexError: no such group\r\nstdout:   Physical volume \"/dev/xvdh\" successfully created\r\n  Volume group \"mantl\" successfully created\r\n==> Processing: /etc/mantl/filesystems.d/10-volume-group.conf\r\nREAD:  ['/sbin/pvs', '--nameprefix', '--noheadings', '--unquoted', '-o', 'pv_all,vg_name', '--separator', ';']\r\nREAD:  ['/sbin/vgs', '--nameprefix', '--noheadings', '--unquoted', '-o', 'all', '--separator', ';']\r\n==> Processing: /etc/mantl/filesystems.d/20-docker-volume.conf\r\nfailed: [lb0-control-03] => {\"changed\": true, \"cmd\": \"/usr/bin/mantl-storage-setup\", \"delta\": \"0:00:00.162313\", \"end\": \"2016-07-15 10:04:21.783770\", \"rc\": 1, \"start\": \"2016-07-15 10:04:21.621457\", \"warnings\": []}\r\nstderr: Traceback (most recent call last):\r\n  File \"/usr/bin/mantl-storage-setup\", line 296, in <module>\r\n    main()\r\n  File \"/usr/bin/mantl-storage-setup\", line 289, in main\r\n    iterate_config(\"volume\", process_volume, cp)\r\n  File \"/usr/bin/mantl-storage-setup\", line 277, in iterate_config\r\n    fun(each, cp)\r\n  File \"/usr/bin/mantl-storage-setup\", line 147, in process_volume\r\n    size, size_opt, size_unit = parse_size(size)\r\n  File \"/usr/bin/mantl-storage-setup\", line 135, in parse_size\r\n    return int(m.group(1)), \"L\", m.group(2)\r\nIndexError: no such group\r\nstdout:   Physical volume \"/dev/xvdh\" successfully created\r\n  Volume group \"mantl\" successfully created\r\n==> Processing: /etc/mantl/filesystems.d/10-volume-group.conf\r\nREAD:  ['/sbin/pvs', '--nameprefix', '--noheadings', '--unquoted', '-o', 'pv_all,vg_name', '--separator', ';']\r\nREAD:  ['/sbin/vgs', '--nameprefix', '--noheadings', '--unquoted', '-o', 'all', '--separator', ';']\r\n==> Processing: /etc/mantl/filesystems.d/20-docker-volume.conf\r\nfailed: [lb0-control-02] => {\"changed\": true, \"cmd\": \"/usr/bin/mantl-storage-setup\", \"delta\": \"0:00:00.158287\", \"end\": \"2016-07-15 10:04:21.789124\", \"rc\": 1, \"start\": \"2016-07-15 10:04:21.630837\", \"warnings\": []}\r\nstderr: Traceback (most recent call last):\r\n  File \"/usr/bin/mantl-storage-setup\", line 296, in <module>\r\n    main()\r\n  File \"/usr/bin/mantl-storage-setup\", line 289, in main\r\n    iterate_config(\"volume\", process_volume, cp)\r\n  File \"/usr/bin/mantl-storage-setup\", line 277, in iterate_config\r\n    fun(each, cp)\r\n  File \"/usr/bin/mantl-storage-setup\", line 147, in process_volume\r\n    size, size_opt, size_unit = parse_size(size)\r\n  File \"/usr/bin/mantl-storage-setup\", line 135, in parse_size\r\n    return int(m.group(1)), \"L\", m.group(2)\r\nIndexError: no such group\r\nstdout:   Physical volume \"/dev/xvdh\" successfully created\r\n  Volume group \"mantl\" successfully created\r\n==> Processing: /etc/mantl/filesystems.d/10-volume-group.conf\r\nREAD:  ['/sbin/pvs', '--nameprefix', '--noheadings', '--unquoted', '-o', 'pv_all,vg_name', '--separator', ';']\r\nREAD:  ['/sbin/vgs', '--nameprefix', '--noheadings', '--unquoted', '-o', 'all', '--separator', ';']\r\n==> Processing: /etc/mantl/filesystems.d/20-docker-volume.conf\r\nfailed: [lb0-edge-01] => {\"changed\": true, \"cmd\": \"/usr/bin/mantl-storage-setup\", \"delta\": \"0:00:00.153066\", \"end\": \"2016-07-15 10:04:21.939292\", \"rc\": 1, \"start\": \"2016-07-15 10:04:21.786226\", \"warnings\": []}\r\nstderr: Traceback (most recent call last):\r\n  File \"/usr/bin/mantl-storage-setup\", line 296, in <module>\r\n    main()\r\n  File \"/usr/bin/mantl-storage-setup\", line 289, in main\r\n    iterate_config(\"volume\", process_volume, cp)\r\n  File \"/usr/bin/mantl-storage-setup\", line 277, in iterate_config\r\n    fun(each, cp)\r\n  File \"/usr/bin/mantl-storage-setup\", line 147, in process_volume\r\n    size, size_opt, size_unit = parse_size(size)\r\n  File \"/usr/bin/mantl-storage-setup\", line 135, in parse_size\r\n    return int(m.group(1)), \"L\", m.group(2)\r\nIndexError: no such group\r\nstdout:   Physical volume \"/dev/xvdh\" successfully created\r\n  Volume group \"mantl\" successfully created\r\n==> Processing: /etc/mantl/filesystems.d/10-volume-group.conf\r\nREAD:  ['/sbin/pvs', '--nameprefix', '--noheadings', '--unquoted', '-o', 'pv_all,vg_name', '--separator', ';']\r\nREAD:  ['/sbin/vgs', '--nameprefix', '--noheadings', '--unquoted', '-o', 'all', '--separator', ';']\r\n==> Processing: /etc/mantl/filesystems.d/20-docker-volume.conf\r\nfailed: [lb0-control-01] => {\"changed\": true, \"cmd\": \"/usr/bin/mantl-storage-setup\", \"delta\": \"0:00:00.172491\", \"end\": \"2016-07-15 10:04:22.003993\", \"rc\": 1, \"start\": \"2016-07-15 10:04:21.831502\", \"warnings\": []}\r\nstderr: Traceback (most recent call last):\r\n  File \"/usr/bin/mantl-storage-setup\", line 296, in <module>\r\n    main()\r\n  File \"/usr/bin/mantl-storage-setup\", line 289, in main\r\n    iterate_config(\"volume\", process_volume, cp)\r\n  File \"/usr/bin/mantl-storage-setup\", line 277, in iterate_config\r\n    fun(each, cp)\r\n  File \"/usr/bin/mantl-storage-setup\", line 147, in process_volume\r\n    size, size_opt, size_unit = parse_size(size)\r\n  File \"/usr/bin/mantl-storage-setup\", line 135, in parse_size\r\n    return int(m.group(1)), \"L\", m.group(2)\r\nIndexError: no such group\r\nstdout:   Physical volume \"/dev/xvdh\" successfully created\r\n  Volume group \"mantl\" successfully created\r\n==> Processing: /etc/mantl/filesystems.d/10-volume-group.conf\r\nREAD:  ['/sbin/pvs', '--nameprefix', '--noheadings', '--unquoted', '-o', 'pv_all,vg_name', '--separator', ';']\r\nREAD:  ['/sbin/vgs', '--nameprefix', '--noheadings', '--unquoted', '-o', 'all', '--separator', ';']\r\n==> Processing: /etc/mantl/filesystems.d/20-docker-volume.conf\r\nfailed: [lb0-kubeworker-001] => {\"changed\": true, \"cmd\": \"/usr/bin/mantl-storage-setup\", \"delta\": \"0:00:00.214339\", \"end\": \"2016-07-15 10:04:22.038969\", \"rc\": 1, \"start\": \"2016-07-15 10:04:21.824630\", \"warnings\": []}\r\nstderr: Traceback (most recent call last):\r\n  File \"/usr/bin/mantl-storage-setup\", line 296, in <module>\r\n    main()\r\n  File \"/usr/bin/mantl-storage-setup\", line 289, in main\r\n    iterate_config(\"volume\", process_volume, cp)\r\n  File \"/usr/bin/mantl-storage-setup\", line 277, in iterate_config\r\n    fun(each, cp)\r\n  File \"/usr/bin/mantl-storage-setup\", line 147, in process_volume\r\n    size, size_opt, size_unit = parse_size(size)\r\n  File \"/usr/bin/mantl-storage-setup\", line 135, in parse_size\r\n    return int(m.group(1)), \"L\", m.group(2)\r\nIndexError: no such group\r\nstdout:   Physical volume \"/dev/xvdh\" successfully created\r\n  Volume group \"mantl\" successfully created\r\n==> Processing: /etc/mantl/filesystems.d/10-volume-group.conf\r\nREAD:  ['/sbin/pvs', '--nameprefix', '--noheadings', '--unquoted', '-o', 'pv_all,vg_name', '--separator', ';']\r\nREAD:  ['/sbin/vgs', '--nameprefix', '--noheadings', '--unquoted', '-o', 'all', '--separator', ';']\r\n==> Processing: /etc/mantl/filesystems.d/20-docker-volume.conf\r\nfailed: [lb0-worker-001] => {\"changed\": true, \"cmd\": \"/usr/bin/mantl-storage-setup\", \"delta\": \"0:00:00.215793\", \"end\": \"2016-07-15 10:04:22.100355\", \"rc\": 1, \"start\": \"2016-07-15 10:04:21.884562\", \"warnings\": []}\r\nstderr: Traceback (most recent call last):\r\n  File \"/usr/bin/mantl-storage-setup\", line 296, in <module>\r\n    main()\r\n  File \"/usr/bin/mantl-storage-setup\", line 289, in main\r\n    iterate_config(\"volume\", process_volume, cp)\r\n  File \"/usr/bin/mantl-storage-setup\", line 277, in iterate_config\r\n    fun(each, cp)\r\n  File \"/usr/bin/mantl-storage-setup\", line 147, in process_volume\r\n    size, size_opt, size_unit = parse_size(size)\r\n  File \"/usr/bin/mantl-storage-setup\", line 135, in parse_size\r\n    return int(m.group(1)), \"L\", m.group(2)\r\nIndexError: no such group\r\nstdout:   Physical volume \"/dev/xvdh\" successfully created\r\n  Volume group \"mantl\" successfully created\r\n==> Processing: /etc/mantl/filesystems.d/10-volume-group.conf\r\nREAD:  ['/sbin/pvs', '--nameprefix', '--noheadings', '--unquoted', '-o', 'pv_all,vg_name', '--separator', ';']\r\nREAD:  ['/sbin/vgs', '--nameprefix', '--noheadings', '--unquoted', '-o', 'all', '--separator', ';']\r\n==> Processing: /etc/mantl/filesystems.d/20-docker-volume.conf\r\n```"}}
{"actor":{"display_login":"siddharthist"}}