{"action":"created","comment":{"url":"https://api.github.com/repos/SUSE-Cloud/automation/pulls/comments/23832005","id":23832005,"diff_hunk":"@@ -0,0 +1,310 @@\n+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.\n+#\n+# This program is free software; you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License as published by\n+# the Free Software Foundation; either version 2 of the License, or\n+# (at your option) any later version.\n+#\n+# This program is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License along\n+# with this program; if not, write to the Free Software Foundation, Inc.,\n+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n+\n+import argparse\n+import os\n+import re\n+import sys\n+\n+import sh\n+\n+\n+# open stdout in unbuffered mode\n+sys.stdout = os.fdopen(sys.stdout.fileno(), \"wb\", 0)\n+\n+\n+class Key(object):\n+    \"\"\"Class used to create and reuse temporal SSH keys.\"\"\"\n+\n+    def __init__(self, name=None):\n+        \"\"\"Create a new key without passphrase if there is any.\"\"\"\n+        if not name:\n+            self.name = '.iscsi_fake_id_dsa'\n+        if not os.path.exists(self.name):\n+            sh.ssh_keygen('-t', 'dsa', '-f', self.name, '-N', '')\n+\n+        os.chmod(self.key(), 0600)\n+        os.chmod(self.pub_key(), 0600)\n+\n+    def key(self):\n+        \"\"\"Return the private key filename.\"\"\"\n+        return self.name\n+\n+    def pub_key(self):\n+        \"\"\"Return the public key filename.\"\"\"\n+        return self.name + '.pub'\n+\n+    def clean_key(self):\n+        \"\"\"Remove private and public temporal keys.\"\"\"\n+        if os.path.exists(self.key()):\n+            os.remove(self.key())\n+            os.remove(self.pub_key())\n+\n+    # def __del__(self):\n+    #     \"\"\"Remove the key.\"\"\"\n+    #     # Because of the way Python works, there is not guarantee that\n+    #     # this method is always called.  For this case it doesn't\n+    #     # matter, because the old key will be reused.\n+    #     self.clean_key()\n+\n+\n+class SSH(object):\n+    \"\"\"Simplify SSH connections to a remote machine.\"\"\"\n+\n+    def __init__(self, user, address, password, key=None):\n+        if not key:\n+            key = Key()\n+\n+        self.user = user\n+        self.address = address\n+        self.password = password\n+        self.key = key\n+\n+        self._copy_id = False\n+        self._connect = None\n+\n+    def ssh_copy_id(self):\n+        \"\"\"Copy a fake key (key without passphrase) into a node.\"\"\"\n+        # If the ID is already there, do nothing\n+        if self._copy_id:\n+            return\n+\n+        def _interact(char, stdin):\n+            sys.stdout.write(char.encode())\n+            _interact.aggregated += char\n+            if _interact.aggregated.endswith(\"Password: \"):\n+                stdin.put('%s\\n' % self.password)\n+            elif char == '\\n':\n+                _interact.aggregated = ''\n+\n+        _interact.aggregated = ''\n+        sh.ssh_copy_id('-i', self.key.pub_key(),\n+                       '-o', 'StrictHostKeyChecking=no',\n+                       '-o', 'UserKnownHostsFile=/dev/null',\n+                       '%s@%s' % (self.user, self.address),\n+                       _out=_interact, _out_bufsize=0, _tty_in=True)\n+\n+    def clean_key(self):\n+        \"\"\"Remove key from the remote server.\"\"\"\n+        if not self._connect:\n+            return\n+\n+        key = \"'%s'\" % open(self.key.pub_key()).read().strip()\n+        self._connect.grep('-v', key, '~/.ssh/authorized_keys',\n+                           '> ~/.ssh/authorized_keys.TMP')\n+        self._connect.cp('-a', '~/.ssh/authorized_keys', '~/.ssh/authorized_keys.BAK')\n+        self._connect.mv('~/.ssh/authorized_keys.TMP', '~/.ssh/authorized_keys')\n+        self._connect = None\n+\n+    def connect(self):\n+        \"\"\"Create an SSH connection to the remote host.\"\"\"\n+        if not self._copy_id:\n+            self.ssh_copy_id()\n+\n+        self._connect = sh.ssh.bake('-i', self.key.key(),\n+                                    '-o', 'StrictHostKeyChecking=no',\n+                                    '-o', 'UserKnownHostsFile=/dev/null',\n+                                    '%s@%s' % (self.user, self.address))\n+        return self._connect\n+\n+    def __getattr__(self, name):\n+        \"\"\"Delegate missing attributes to local connection.\"\"\"\n+        if not self._connect:\n+            self.connect()\n+        if self._connect:\n+            return getattr(self._connect, name)\n+\n+    # def __del__(self):\n+    #     \"\"\"Clean remote key.\"\"\"\n+    #     # In Python __del__ is not always called.  Do not relay on it\n+    #     # for cleaning stuff.\n+    #     self.clean_key()\n+\n+\n+class ISCSI(object):\n+    \"\"\"Class for basic iSCSI management.\"\"\"\n+\n+    def __init__(self, ssh):\n+        self.ssh = ssh\n+\n+    def service(self, service, status):\n+        self.ssh.chkconfig(service, 'on' if status else 'off')\n+\n+    def zypper(self, package):\n+        self.ssh.zypper('--non-interactive', 'install',\n+                        '--no-recommends', package)\n+\n+    def deploy(self):\n+        raise NotImplementedError('Deploy method not implemented')\n+\n+\n+class Target(ISCSI):\n+    \"\"\"Define and manage an iSCSI target node.\"\"\"\n+\n+    def __init__(self, ssh, loop='/dev/loop0', path='/tmp/iscsi.loop',\n+                 size=100):\n+        super(Target, self).__init__(ssh)\n+\n+        self.loop = loop\n+        self.path = path\n+        # `size` is expressed in mega (M)\n+        self.size = size\n+\n+    def find_loop(self, loop):\n+        \"\"\"Find an attached loop devide.\"\"\"\n+        pattern = re.compile(r'^(/dev/loop\\d+):.*\\((.*)\\)')\n+        for line in self.ssh.losetup('-a'):\n+            ldev, lfile = pattern.match(line).groups()\n+            if loop == ldev:\n+                return (ldev, lfile)\n+\n+    def destroy_loop(self, loop):\n+        \"\"\"Destroy loopback devices.\"\"\"\n+        is_in = self.find_loop(loop)\n+        if is_in:\n+            _, path = is_in\n+            out = str(self.ssh.losetup('-d', loop))\n+            if \"can't delete\" in out:\n+                raise Exception(out)\n+            self.ssh.rm(path)\n+\n+    def create_loop(self, loop, path, size):\n+        \"\"\"Create a new loopback device.\"\"\"\n+        is_in = self.find_loop(loop)\n+        if is_in:\n+            raise Exception('loop device already installed: %s / %s' %\n+                            is_in)\n+\n+        self.ssh.dd('if=/dev/zero', 'of=%s' % path, 'bs=1M',\n+                    'count=%d' % size)\n+        self.ssh.fdisk(sh.echo('-e', r'o\\nn\\np\\n1\\n\\n\\nw'), path)\n+        self.ssh.losetup(loop, path)\n+\n+        is_in = self.find_loop(loop)\n+        if not is_in:\n+            raise Exception('fail to create loop device: %s / %s' %\n+                            is_in)\n+\n+    def deploy(self):\n+        \"\"\"Deploy, configure and launch iSCSI target.\"\"\"\n+        self.zypper('iscsitarget')\n+\n+        self.create_loop(self.loop, self.path, self.size)\n+\n+        # Default configuration uses incoming autentication\n+        self.ssh.echo('IncomingUser user passwd', '>> /etc/ietd.conf')\n+        self.ssh.echo('Target iqn.2015-01.qa.cloud.suse.de:id01',\n+                      '>> /etc/ietd.conf')\n+        self.ssh.echo('-e', '\"\\tLun 0 Path=%s\"' % self.loop,\n+                      '>> /etc/ietd.conf')\n+\n+        # Persist and start the service\n+        self.service('iscsitarget', True)\n+        self.ssh.rciscsitarget('restart')\n+\n+        # Check if the device is exported\n+        result = str(self.ssh.cat('/proc/net/iet/volume'))\n+        if 'iqn.2015-01.qa.cloud.suse.de:id01' not in result:\n+            raise Exception('Unable to deploy the iSCSI target')\n+\n+\n+class Initiator(ISCSI):\n+    \"\"\"Define and manage an iSCSI initiator node.\"\"\"\n+\n+    # For now, we are going to use the discovery option for iSCSI to\n+    # populate the database.  This simplify the deployment of a basic\n+    # iSCSI scenario, with a single target point and multiple\n+    # initiators.\n+\n+    def __init__(self, ssh, target_ip, mount):\n+        \"\"\"Initialize the Initiator instance with an ip and a mount point.\"\"\"\n+        super(Initiator, self).__init__(ssh)\n+        self.target_ip = target_ip\n+        self.mount = mount\n+\n+    def deploy(self, mkfs=False):\n+        \"\"\"Deploy, configure and persist an iSCSI initiator.\"\"\"\n+        self.zypper('open-iscsi')\n+\n+        # Default configuration only takes care of autentication\n+        lines = (\n+            'node.session.auth.authmethod = CHAP',\n+            'node.session.auth.username = user',\n+            'node.session.auth.password = passwd',\n+            'discovery.sendtargets.auth.authmethod = CHAP',\n+            'discovery.sendtargets.auth.username = user',\n+            'discovery.sendtargets.auth.password = passwd',\n+        )\n+        for line in lines:\n+            self.ssh.echo(line, '>> /etc/iscsid.conf')\n+\n+        # Persist and start the service\n+        self.service('open-iscsi', True)\n+        self.ssh.sh('rcopen-iscsi', 'restart')\n+\n+        # Discovery and login\n+        result = self.ssh.iscsiadm('-m', 'discovery', '--type=st',\n+                                   '--portal=%s' % self.target_ip)\n+        name = 'iqn.2015-01.qa.cloud.suse.de:id01'\n+        if name not in result:\n+            raise Exception('Target %s not found' % name)\n+        self.ssh.iscsiadm('-m', 'node', '-n', name, '--login')\n+\n+        if mkfs:\n+            self.ssh.mkfs('/dev/sda1')\n+\n+        self.ssh.mkdir('-p', self.mount)\n+        self.ssh.mount('/dev/sda1', self.mount)\n+\n+    def umount(self):\n+        \"\"\"Umount the shared device.\"\"\"\n+        self.ssh.umount(self.mount)\n+\n+        name = 'iqn.2015-01.qa.cloud.suse.de:id01'\n+        self.ssh.iscsiadm('-m', 'node', '-n', name, '--logout')\n+\n+\n+def test():\n+    \"\"\"Testing against mkcloud.\"\"\"\n+    # Adming node is going to be the target\n+    admin = SSH('root', '192.168.124.10', 'linux')","path":"scripts/iscsictl.py","position":283,"original_position":283,"commit_id":"f0c6124b6acf5fc831b5020cba922e0b05727001","original_commit_id":"f0c6124b6acf5fc831b5020cba922e0b05727001","user":{"login":"aplanas","id":645701,"avatar_url":"https://avatars.githubusercontent.com/u/645701?v=3","gravatar_id":"","url":"https://api.github.com/users/aplanas","html_url":"https://github.com/aplanas","followers_url":"https://api.github.com/users/aplanas/followers","following_url":"https://api.github.com/users/aplanas/following{/other_user}","gists_url":"https://api.github.com/users/aplanas/gists{/gist_id}","starred_url":"https://api.github.com/users/aplanas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aplanas/subscriptions","organizations_url":"https://api.github.com/users/aplanas/orgs","repos_url":"https://api.github.com/users/aplanas/repos","events_url":"https://api.github.com/users/aplanas/events{/privacy}","received_events_url":"https://api.github.com/users/aplanas/received_events","type":"User","site_admin":false},"body":"For testing the code against a local mkcloud? This is only testing code.","created_at":"2015-01-30T09:41:06Z","updated_at":"2015-01-30T09:41:06Z","html_url":"https://github.com/SUSE-Cloud/automation/pull/179#discussion_r23832005","pull_request_url":"https://api.github.com/repos/SUSE-Cloud/automation/pulls/179","_links":{"self":{"href":"https://api.github.com/repos/SUSE-Cloud/automation/pulls/comments/23832005"},"html":{"href":"https://github.com/SUSE-Cloud/automation/pull/179#discussion_r23832005"},"pull_request":{"href":"https://api.github.com/repos/SUSE-Cloud/automation/pulls/179"}}},"pull_request":{"url":"https://api.github.com/repos/SUSE-Cloud/automation/pulls/179","id":28299953,"html_url":"https://github.com/SUSE-Cloud/automation/pull/179","diff_url":"https://github.com/SUSE-Cloud/automation/pull/179.diff","patch_url":"https://github.com/SUSE-Cloud/automation/pull/179.patch","issue_url":"https://api.github.com/repos/SUSE-Cloud/automation/issues/179","number":179,"state":"open","locked":false,"title":"Add initial version of iscsictl.py helper.","user":{"login":"aplanas","id":645701,"avatar_url":"https://avatars.githubusercontent.com/u/645701?v=3","gravatar_id":"","url":"https://api.github.com/users/aplanas","html_url":"https://github.com/aplanas","followers_url":"https://api.github.com/users/aplanas/followers","following_url":"https://api.github.com/users/aplanas/following{/other_user}","gists_url":"https://api.github.com/users/aplanas/gists{/gist_id}","starred_url":"https://api.github.com/users/aplanas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aplanas/subscriptions","organizations_url":"https://api.github.com/users/aplanas/orgs","repos_url":"https://api.github.com/users/aplanas/repos","events_url":"https://api.github.com/users/aplanas/events{/privacy}","received_events_url":"https://api.github.com/users/aplanas/received_events","type":"User","site_admin":false},"body":"iscsictl.py is a helper for QA to setup iSCSI targets and initiators.","created_at":"2015-01-29T17:53:39Z","updated_at":"2015-01-30T09:41:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5b9c63a75b36de89a0df82b3fb0622a4f03cf4ce","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SUSE-Cloud/automation/pulls/179/commits","review_comments_url":"https://api.github.com/repos/SUSE-Cloud/automation/pulls/179/comments","review_comment_url":"https://api.github.com/repos/SUSE-Cloud/automation/pulls/comments/{number}","comments_url":"https://api.github.com/repos/SUSE-Cloud/automation/issues/179/comments","statuses_url":"https://api.github.com/repos/SUSE-Cloud/automation/statuses/f0c6124b6acf5fc831b5020cba922e0b05727001","head":{"label":"aplanas:master","ref":"master","sha":"f0c6124b6acf5fc831b5020cba922e0b05727001","user":{"login":"aplanas","id":645701,"avatar_url":"https://avatars.githubusercontent.com/u/645701?v=3","gravatar_id":"","url":"https://api.github.com/users/aplanas","html_url":"https://github.com/aplanas","followers_url":"https://api.github.com/users/aplanas/followers","following_url":"https://api.github.com/users/aplanas/following{/other_user}","gists_url":"https://api.github.com/users/aplanas/gists{/gist_id}","starred_url":"https://api.github.com/users/aplanas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aplanas/subscriptions","organizations_url":"https://api.github.com/users/aplanas/orgs","repos_url":"https://api.github.com/users/aplanas/repos","events_url":"https://api.github.com/users/aplanas/events{/privacy}","received_events_url":"https://api.github.com/users/aplanas/received_events","type":"User","site_admin":false},"repo":{"id":27756986,"name":"automation","full_name":"aplanas/automation","owner":{"login":"aplanas","id":645701,"avatar_url":"https://avatars.githubusercontent.com/u/645701?v=3","gravatar_id":"","url":"https://api.github.com/users/aplanas","html_url":"https://github.com/aplanas","followers_url":"https://api.github.com/users/aplanas/followers","following_url":"https://api.github.com/users/aplanas/following{/other_user}","gists_url":"https://api.github.com/users/aplanas/gists{/gist_id}","starred_url":"https://api.github.com/users/aplanas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aplanas/subscriptions","organizations_url":"https://api.github.com/users/aplanas/orgs","repos_url":"https://api.github.com/users/aplanas/repos","events_url":"https://api.github.com/users/aplanas/events{/privacy}","received_events_url":"https://api.github.com/users/aplanas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aplanas/automation","description":"Automation scripts for development, testing, and CI","fork":true,"url":"https://api.github.com/repos/aplanas/automation","forks_url":"https://api.github.com/repos/aplanas/automation/forks","keys_url":"https://api.github.com/repos/aplanas/automation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aplanas/automation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aplanas/automation/teams","hooks_url":"https://api.github.com/repos/aplanas/automation/hooks","issue_events_url":"https://api.github.com/repos/aplanas/automation/issues/events{/number}","events_url":"https://api.github.com/repos/aplanas/automation/events","assignees_url":"https://api.github.com/repos/aplanas/automation/assignees{/user}","branches_url":"https://api.github.com/repos/aplanas/automation/branches{/branch}","tags_url":"https://api.github.com/repos/aplanas/automation/tags","blobs_url":"https://api.github.com/repos/aplanas/automation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aplanas/automation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aplanas/automation/git/refs{/sha}","trees_url":"https://api.github.com/repos/aplanas/automation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aplanas/automation/statuses/{sha}","languages_url":"https://api.github.com/repos/aplanas/automation/languages","stargazers_url":"https://api.github.com/repos/aplanas/automation/stargazers","contributors_url":"https://api.github.com/repos/aplanas/automation/contributors","subscribers_url":"https://api.github.com/repos/aplanas/automation/subscribers","subscription_url":"https://api.github.com/repos/aplanas/automation/subscription","commits_url":"https://api.github.com/repos/aplanas/automation/commits{/sha}","git_commits_url":"https://api.github.com/repos/aplanas/automation/git/commits{/sha}","comments_url":"https://api.github.com/repos/aplanas/automation/comments{/number}","issue_comment_url":"https://api.github.com/repos/aplanas/automation/issues/comments/{number}","contents_url":"https://api.github.com/repos/aplanas/automation/contents/{+path}","compare_url":"https://api.github.com/repos/aplanas/automation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aplanas/automation/merges","archive_url":"https://api.github.com/repos/aplanas/automation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aplanas/automation/downloads","issues_url":"https://api.github.com/repos/aplanas/automation/issues{/number}","pulls_url":"https://api.github.com/repos/aplanas/automation/pulls{/number}","milestones_url":"https://api.github.com/repos/aplanas/automation/milestones{/number}","notifications_url":"https://api.github.com/repos/aplanas/automation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aplanas/automation/labels{/name}","releases_url":"https://api.github.com/repos/aplanas/automation/releases{/id}","created_at":"2014-12-09T08:30:41Z","updated_at":"2015-01-29T17:53:09Z","pushed_at":"2015-01-29T17:53:09Z","git_url":"git://github.com/aplanas/automation.git","ssh_url":"git@github.com:aplanas/automation.git","clone_url":"https://github.com/aplanas/automation.git","svn_url":"https://github.com/aplanas/automation","homepage":"","size":2107,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SUSE-Cloud:master","ref":"master","sha":"e1559ecd4691c1c41f95a4a7eb887dcde54c1c51","user":{"login":"SUSE-Cloud","id":1553906,"avatar_url":"https://avatars.githubusercontent.com/u/1553906?v=3","gravatar_id":"","url":"https://api.github.com/users/SUSE-Cloud","html_url":"https://github.com/SUSE-Cloud","followers_url":"https://api.github.com/users/SUSE-Cloud/followers","following_url":"https://api.github.com/users/SUSE-Cloud/following{/other_user}","gists_url":"https://api.github.com/users/SUSE-Cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/SUSE-Cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUSE-Cloud/subscriptions","organizations_url":"https://api.github.com/users/SUSE-Cloud/orgs","repos_url":"https://api.github.com/users/SUSE-Cloud/repos","events_url":"https://api.github.com/users/SUSE-Cloud/events{/privacy}","received_events_url":"https://api.github.com/users/SUSE-Cloud/received_events","type":"Organization","site_admin":false},"repo":{"id":6384356,"name":"automation","full_name":"SUSE-Cloud/automation","owner":{"login":"SUSE-Cloud","id":1553906,"avatar_url":"https://avatars.githubusercontent.com/u/1553906?v=3","gravatar_id":"","url":"https://api.github.com/users/SUSE-Cloud","html_url":"https://github.com/SUSE-Cloud","followers_url":"https://api.github.com/users/SUSE-Cloud/followers","following_url":"https://api.github.com/users/SUSE-Cloud/following{/other_user}","gists_url":"https://api.github.com/users/SUSE-Cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/SUSE-Cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUSE-Cloud/subscriptions","organizations_url":"https://api.github.com/users/SUSE-Cloud/orgs","repos_url":"https://api.github.com/users/SUSE-Cloud/repos","events_url":"https://api.github.com/users/SUSE-Cloud/events{/privacy}","received_events_url":"https://api.github.com/users/SUSE-Cloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SUSE-Cloud/automation","description":"Automation scripts for development, testing, and CI","fork":false,"url":"https://api.github.com/repos/SUSE-Cloud/automation","forks_url":"https://api.github.com/repos/SUSE-Cloud/automation/forks","keys_url":"https://api.github.com/repos/SUSE-Cloud/automation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SUSE-Cloud/automation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SUSE-Cloud/automation/teams","hooks_url":"https://api.github.com/repos/SUSE-Cloud/automation/hooks","issue_events_url":"https://api.github.com/repos/SUSE-Cloud/automation/issues/events{/number}","events_url":"https://api.github.com/repos/SUSE-Cloud/automation/events","assignees_url":"https://api.github.com/repos/SUSE-Cloud/automation/assignees{/user}","branches_url":"https://api.github.com/repos/SUSE-Cloud/automation/branches{/branch}","tags_url":"https://api.github.com/repos/SUSE-Cloud/automation/tags","blobs_url":"https://api.github.com/repos/SUSE-Cloud/automation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SUSE-Cloud/automation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SUSE-Cloud/automation/git/refs{/sha}","trees_url":"https://api.github.com/repos/SUSE-Cloud/automation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SUSE-Cloud/automation/statuses/{sha}","languages_url":"https://api.github.com/repos/SUSE-Cloud/automation/languages","stargazers_url":"https://api.github.com/repos/SUSE-Cloud/automation/stargazers","contributors_url":"https://api.github.com/repos/SUSE-Cloud/automation/contributors","subscribers_url":"https://api.github.com/repos/SUSE-Cloud/automation/subscribers","subscription_url":"https://api.github.com/repos/SUSE-Cloud/automation/subscription","commits_url":"https://api.github.com/repos/SUSE-Cloud/automation/commits{/sha}","git_commits_url":"https://api.github.com/repos/SUSE-Cloud/automation/git/commits{/sha}","comments_url":"https://api.github.com/repos/SUSE-Cloud/automation/comments{/number}","issue_comment_url":"https://api.github.com/repos/SUSE-Cloud/automation/issues/comments/{number}","contents_url":"https://api.github.com/repos/SUSE-Cloud/automation/contents/{+path}","compare_url":"https://api.github.com/repos/SUSE-Cloud/automation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SUSE-Cloud/automation/merges","archive_url":"https://api.github.com/repos/SUSE-Cloud/automation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SUSE-Cloud/automation/downloads","issues_url":"https://api.github.com/repos/SUSE-Cloud/automation/issues{/number}","pulls_url":"https://api.github.com/repos/SUSE-Cloud/automation/pulls{/number}","milestones_url":"https://api.github.com/repos/SUSE-Cloud/automation/milestones{/number}","notifications_url":"https://api.github.com/repos/SUSE-Cloud/automation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SUSE-Cloud/automation/labels{/name}","releases_url":"https://api.github.com/repos/SUSE-Cloud/automation/releases{/id}","created_at":"2012-10-25T08:45:31Z","updated_at":"2015-01-29T15:11:39Z","pushed_at":"2015-01-29T15:11:39Z","git_url":"git://github.com/SUSE-Cloud/automation.git","ssh_url":"git@github.com:SUSE-Cloud/automation.git","clone_url":"https://github.com/SUSE-Cloud/automation.git","svn_url":"https://github.com/SUSE-Cloud/automation","homepage":"","size":6385,"stargazers_count":5,"watchers_count":5,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":3,"forks":31,"open_issues":3,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SUSE-Cloud/automation/pulls/179"},"html":{"href":"https://github.com/SUSE-Cloud/automation/pull/179"},"issue":{"href":"https://api.github.com/repos/SUSE-Cloud/automation/issues/179"},"comments":{"href":"https://api.github.com/repos/SUSE-Cloud/automation/issues/179/comments"},"review_comments":{"href":"https://api.github.com/repos/SUSE-Cloud/automation/pulls/179/comments"},"review_comment":{"href":"https://api.github.com/repos/SUSE-Cloud/automation/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/SUSE-Cloud/automation/pulls/179/commits"},"statuses":{"href":"https://api.github.com/repos/SUSE-Cloud/automation/statuses/f0c6124b6acf5fc831b5020cba922e0b05727001"}}}}