{"action":"closed","number":471,"pull_request":{"url":"https://api.github.com/repos/awslabs/cfncluster/pulls/471","id":205149969,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1MTQ5OTY5","html_url":"https://github.com/awslabs/cfncluster/pull/471","diff_url":"https://github.com/awslabs/cfncluster/pull/471.diff","patch_url":"https://github.com/awslabs/cfncluster/pull/471.patch","issue_url":"https://api.github.com/repos/awslabs/cfncluster/issues/471","number":471,"state":"closed","locked":false,"title":"Fix integration test for Slurm: get num of slots","user":{"login":"mauri-melato","id":1615209,"node_id":"MDQ6VXNlcjE2MTUyMDk=","avatar_url":"https://avatars3.githubusercontent.com/u/1615209?v=4","gravatar_id":"","url":"https://api.github.com/users/mauri-melato","html_url":"https://github.com/mauri-melato","followers_url":"https://api.github.com/users/mauri-melato/followers","following_url":"https://api.github.com/users/mauri-melato/following{/other_user}","gists_url":"https://api.github.com/users/mauri-melato/gists{/gist_id}","starred_url":"https://api.github.com/users/mauri-melato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauri-melato/subscriptions","organizations_url":"https://api.github.com/users/mauri-melato/orgs","repos_url":"https://api.github.com/users/mauri-melato/repos","events_url":"https://api.github.com/users/mauri-melato/events{/privacy}","received_events_url":"https://api.github.com/users/mauri-melato/received_events","type":"User","site_admin":false},"body":"After fixing the configuration of the compute nodes in a Slurm cluster\r\nand set the CPU as consumable resource we should also fix job submission\r\nin the integration tests.\r\nIn order to properly test the scale up a single job submission should\r\nallocate all the slots available in a compute node.\r\nThe fix has been tested.\r\n\r\nStage 1: two jobs submitted (one running and one pending)\r\n```\r\nJOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)\r\n3   compute  job2.sh   centos PD       0:00      1 (Resources)\r\n2   compute  job1.sh   centos  R       5:18      1 ip-10-0-82-245\r\n```\r\n- one node with the 2 CPUs allocated\r\n```\r\n[centos@ip-10-0-235-160 ~]$ scontrol show nodes --all\r\nNodeName=ip-10-0-82-245 Arch=x86_64 CoresPerSocket=1\r\n   CPUAlloc=2 CPUErr=0 CPUTot=2 CPULoad=0.11\r\n   AvailableFeatures=(null)\r\n   ActiveFeatures=(null)\r\n   Gres=(null)\r\n   NodeAddr=ip-10-0-82-245 NodeHostName=ip-10-0-82-245 Version=16.05\r\n   OS=Linux RealMemory=3711 AllocMem=0 FreeMem=3022 Sockets=2 Boards=1\r\n   State=ALLOCATED ThreadsPerCore=1 TmpDisk=14989 Weight=1 Owner=N/A\r\nMCS_label=N/A\r\n   BootTime=2018-07-31T14:37:49 SlurmdStartTime=2018-07-31T14:41:31\r\n   CapWatts=n/a\r\n   CurrentWatts=0 LowestJoules=0 ConsumedJoules=0\r\n   ExtSensorsJoules=n/s ExtSensorsWatts=0 ExtSensorsTemp=n/s\r\n```\r\nStage 2: the second compute node join the cluster and the two jobs are\r\nboth running on two different hosts:\r\n```\r\n[centos@ip-10-0-235-160 ~]$ squeue --states=all\r\nJOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)\r\n2   compute  job1.sh   centos  R       6:14      1 ip-10-0-82-245\r\n3   compute  job2.sh   centos  R       0:34      1 ip-10-0-121-16\r\n```\r\n- two nodes both with the 2 CPU allocated\r\n```\r\n[centos@ip-10-0-235-160 ~]$ scontrol show nodes --all\r\nNodeName=ip-10-0-82-245 Arch=x86_64 CoresPerSocket=1\r\n   CPUAlloc=2 CPUErr=0 CPUTot=2 CPULoad=0.11\r\n   AvailableFeatures=(null)\r\n   ActiveFeatures=(null)\r\n   Gres=(null)\r\n   NodeAddr=ip-10-0-82-245 NodeHostName=ip-10-0-82-245 Version=16.05\r\n   OS=Linux RealMemory=3711 AllocMem=0 FreeMem=3022 Sockets=2 Boards=1\r\n   State=ALLOCATED ThreadsPerCore=1 TmpDisk=14989 Weight=1 Owner=N/A\r\nMCS_label=N/A\r\n   BootTime=2018-07-31T14:37:49 SlurmdStartTime=2018-07-31T14:41:31\r\n   CapWatts=n/a\r\n   CurrentWatts=0 LowestJoules=0 ConsumedJoules=0\r\n   ExtSensorsJoules=n/s ExtSensorsWatts=0 ExtSensorsTemp=n/s\r\n\r\nNodeName=ip-10-0-121-16 Arch=x86_64 CoresPerSocket=1\r\n   CPUAlloc=2 CPUErr=0 CPUTot=2 CPULoad=0.37\r\n   AvailableFeatures=(null)\r\n   ActiveFeatures=(null)\r\n   Gres=(null)\r\n   NodeAddr=ip-10-0-121-16 NodeHostName=ip-10-0-121-16 Version=(null)\r\n   OS=Linux RealMemory=3711 AllocMem=0 FreeMem=3035 Sockets=2 Boards=1\r\n   State=ALLOCATED ThreadsPerCore=1 TmpDisk=14989 Weight=1 Owner=N/A\r\nMCS_label=N/A\r\n   BootTime=2018-07-31T14:43:46 SlurmdStartTime=2018-07-31T14:47:35\r\n   CapWatts=n/a\r\n   CurrentWatts=0 LowestJoules=0 ConsumedJoules=0\r\n   ExtSensorsJoules=n/s ExtSensorsWatts=0 ExtSensorsTemp=n/s\r\n```\r\n\r\nBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.\r\n","created_at":"2018-07-31T15:20:27Z","updated_at":"2018-08-01T14:09:18Z","closed_at":"2018-08-01T14:09:18Z","merged_at":"2018-08-01T14:09:18Z","merge_commit_sha":"b68b29b6fe3bbac01799e2a06f035f0d8f385fdf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/awslabs/cfncluster/pulls/471/commits","review_comments_url":"https://api.github.com/repos/awslabs/cfncluster/pulls/471/comments","review_comment_url":"https://api.github.com/repos/awslabs/cfncluster/pulls/comments{/number}","comments_url":"https://api.github.com/repos/awslabs/cfncluster/issues/471/comments","statuses_url":"https://api.github.com/repos/awslabs/cfncluster/statuses/577f9eb84733ba2cff93fb24a3ddd198007b8713","head":{"label":"mauri-melato:wip/fix-test-slurm","ref":"wip/fix-test-slurm","sha":"577f9eb84733ba2cff93fb24a3ddd198007b8713","user":{"login":"mauri-melato","id":1615209,"node_id":"MDQ6VXNlcjE2MTUyMDk=","avatar_url":"https://avatars3.githubusercontent.com/u/1615209?v=4","gravatar_id":"","url":"https://api.github.com/users/mauri-melato","html_url":"https://github.com/mauri-melato","followers_url":"https://api.github.com/users/mauri-melato/followers","following_url":"https://api.github.com/users/mauri-melato/following{/other_user}","gists_url":"https://api.github.com/users/mauri-melato/gists{/gist_id}","starred_url":"https://api.github.com/users/mauri-melato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauri-melato/subscriptions","organizations_url":"https://api.github.com/users/mauri-melato/orgs","repos_url":"https://api.github.com/users/mauri-melato/repos","events_url":"https://api.github.com/users/mauri-melato/events{/privacy}","received_events_url":"https://api.github.com/users/mauri-melato/received_events","type":"User","site_admin":false},"repo":{"id":133945952,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM5NDU5NTI=","name":"cfncluster","full_name":"mauri-melato/cfncluster","owner":{"login":"mauri-melato","id":1615209,"node_id":"MDQ6VXNlcjE2MTUyMDk=","avatar_url":"https://avatars3.githubusercontent.com/u/1615209?v=4","gravatar_id":"","url":"https://api.github.com/users/mauri-melato","html_url":"https://github.com/mauri-melato","followers_url":"https://api.github.com/users/mauri-melato/followers","following_url":"https://api.github.com/users/mauri-melato/following{/other_user}","gists_url":"https://api.github.com/users/mauri-melato/gists{/gist_id}","starred_url":"https://api.github.com/users/mauri-melato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauri-melato/subscriptions","organizations_url":"https://api.github.com/users/mauri-melato/orgs","repos_url":"https://api.github.com/users/mauri-melato/repos","events_url":"https://api.github.com/users/mauri-melato/events{/privacy}","received_events_url":"https://api.github.com/users/mauri-melato/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mauri-melato/cfncluster","description":"CfnCluster is a framework that deploys and maintains HPC clusters on AWS.","fork":true,"url":"https://api.github.com/repos/mauri-melato/cfncluster","forks_url":"https://api.github.com/repos/mauri-melato/cfncluster/forks","keys_url":"https://api.github.com/repos/mauri-melato/cfncluster/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mauri-melato/cfncluster/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mauri-melato/cfncluster/teams","hooks_url":"https://api.github.com/repos/mauri-melato/cfncluster/hooks","issue_events_url":"https://api.github.com/repos/mauri-melato/cfncluster/issues/events{/number}","events_url":"https://api.github.com/repos/mauri-melato/cfncluster/events","assignees_url":"https://api.github.com/repos/mauri-melato/cfncluster/assignees{/user}","branches_url":"https://api.github.com/repos/mauri-melato/cfncluster/branches{/branch}","tags_url":"https://api.github.com/repos/mauri-melato/cfncluster/tags","blobs_url":"https://api.github.com/repos/mauri-melato/cfncluster/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mauri-melato/cfncluster/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mauri-melato/cfncluster/git/refs{/sha}","trees_url":"https://api.github.com/repos/mauri-melato/cfncluster/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mauri-melato/cfncluster/statuses/{sha}","languages_url":"https://api.github.com/repos/mauri-melato/cfncluster/languages","stargazers_url":"https://api.github.com/repos/mauri-melato/cfncluster/stargazers","contributors_url":"https://api.github.com/repos/mauri-melato/cfncluster/contributors","subscribers_url":"https://api.github.com/repos/mauri-melato/cfncluster/subscribers","subscription_url":"https://api.github.com/repos/mauri-melato/cfncluster/subscription","commits_url":"https://api.github.com/repos/mauri-melato/cfncluster/commits{/sha}","git_commits_url":"https://api.github.com/repos/mauri-melato/cfncluster/git/commits{/sha}","comments_url":"https://api.github.com/repos/mauri-melato/cfncluster/comments{/number}","issue_comment_url":"https://api.github.com/repos/mauri-melato/cfncluster/issues/comments{/number}","contents_url":"https://api.github.com/repos/mauri-melato/cfncluster/contents/{+path}","compare_url":"https://api.github.com/repos/mauri-melato/cfncluster/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mauri-melato/cfncluster/merges","archive_url":"https://api.github.com/repos/mauri-melato/cfncluster/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mauri-melato/cfncluster/downloads","issues_url":"https://api.github.com/repos/mauri-melato/cfncluster/issues{/number}","pulls_url":"https://api.github.com/repos/mauri-melato/cfncluster/pulls{/number}","milestones_url":"https://api.github.com/repos/mauri-melato/cfncluster/milestones{/number}","notifications_url":"https://api.github.com/repos/mauri-melato/cfncluster/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mauri-melato/cfncluster/labels{/name}","releases_url":"https://api.github.com/repos/mauri-melato/cfncluster/releases{/id}","deployments_url":"https://api.github.com/repos/mauri-melato/cfncluster/deployments","created_at":"2018-05-18T11:32:27Z","updated_at":"2018-07-17T14:52:34Z","pushed_at":"2018-07-31T15:23:02Z","git_url":"git://github.com/mauri-melato/cfncluster.git","ssh_url":"git@github.com:mauri-melato/cfncluster.git","clone_url":"https://github.com/mauri-melato/cfncluster.git","svn_url":"https://github.com/mauri-melato/cfncluster","homepage":"http://aws.amazon.com/hpc/cfncluster","size":1756,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"awslabs:develop","ref":"develop","sha":"7eddac163e84c15b0a8c6d2867d4938a767d7a7b","user":{"login":"awslabs","id":3299148,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTkxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/3299148?v=4","gravatar_id":"","url":"https://api.github.com/users/awslabs","html_url":"https://github.com/awslabs","followers_url":"https://api.github.com/users/awslabs/followers","following_url":"https://api.github.com/users/awslabs/following{/other_user}","gists_url":"https://api.github.com/users/awslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/awslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awslabs/subscriptions","organizations_url":"https://api.github.com/users/awslabs/orgs","repos_url":"https://api.github.com/users/awslabs/repos","events_url":"https://api.github.com/users/awslabs/events{/privacy}","received_events_url":"https://api.github.com/users/awslabs/received_events","type":"Organization","site_admin":false},"repo":{"id":19718034,"node_id":"MDEwOlJlcG9zaXRvcnkxOTcxODAzNA==","name":"cfncluster","full_name":"awslabs/cfncluster","owner":{"login":"awslabs","id":3299148,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTkxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/3299148?v=4","gravatar_id":"","url":"https://api.github.com/users/awslabs","html_url":"https://github.com/awslabs","followers_url":"https://api.github.com/users/awslabs/followers","following_url":"https://api.github.com/users/awslabs/following{/other_user}","gists_url":"https://api.github.com/users/awslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/awslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awslabs/subscriptions","organizations_url":"https://api.github.com/users/awslabs/orgs","repos_url":"https://api.github.com/users/awslabs/repos","events_url":"https://api.github.com/users/awslabs/events{/privacy}","received_events_url":"https://api.github.com/users/awslabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/awslabs/cfncluster","description":"CfnCluster is a framework that deploys and maintains HPC clusters on AWS.","fork":false,"url":"https://api.github.com/repos/awslabs/cfncluster","forks_url":"https://api.github.com/repos/awslabs/cfncluster/forks","keys_url":"https://api.github.com/repos/awslabs/cfncluster/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awslabs/cfncluster/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awslabs/cfncluster/teams","hooks_url":"https://api.github.com/repos/awslabs/cfncluster/hooks","issue_events_url":"https://api.github.com/repos/awslabs/cfncluster/issues/events{/number}","events_url":"https://api.github.com/repos/awslabs/cfncluster/events","assignees_url":"https://api.github.com/repos/awslabs/cfncluster/assignees{/user}","branches_url":"https://api.github.com/repos/awslabs/cfncluster/branches{/branch}","tags_url":"https://api.github.com/repos/awslabs/cfncluster/tags","blobs_url":"https://api.github.com/repos/awslabs/cfncluster/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awslabs/cfncluster/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awslabs/cfncluster/git/refs{/sha}","trees_url":"https://api.github.com/repos/awslabs/cfncluster/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awslabs/cfncluster/statuses/{sha}","languages_url":"https://api.github.com/repos/awslabs/cfncluster/languages","stargazers_url":"https://api.github.com/repos/awslabs/cfncluster/stargazers","contributors_url":"https://api.github.com/repos/awslabs/cfncluster/contributors","subscribers_url":"https://api.github.com/repos/awslabs/cfncluster/subscribers","subscription_url":"https://api.github.com/repos/awslabs/cfncluster/subscription","commits_url":"https://api.github.com/repos/awslabs/cfncluster/commits{/sha}","git_commits_url":"https://api.github.com/repos/awslabs/cfncluster/git/commits{/sha}","comments_url":"https://api.github.com/repos/awslabs/cfncluster/comments{/number}","issue_comment_url":"https://api.github.com/repos/awslabs/cfncluster/issues/comments{/number}","contents_url":"https://api.github.com/repos/awslabs/cfncluster/contents/{+path}","compare_url":"https://api.github.com/repos/awslabs/cfncluster/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awslabs/cfncluster/merges","archive_url":"https://api.github.com/repos/awslabs/cfncluster/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awslabs/cfncluster/downloads","issues_url":"https://api.github.com/repos/awslabs/cfncluster/issues{/number}","pulls_url":"https://api.github.com/repos/awslabs/cfncluster/pulls{/number}","milestones_url":"https://api.github.com/repos/awslabs/cfncluster/milestones{/number}","notifications_url":"https://api.github.com/repos/awslabs/cfncluster/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awslabs/cfncluster/labels{/name}","releases_url":"https://api.github.com/repos/awslabs/cfncluster/releases{/id}","deployments_url":"https://api.github.com/repos/awslabs/cfncluster/deployments","created_at":"2014-05-12T22:42:19Z","updated_at":"2018-07-27T22:01:10Z","pushed_at":"2018-08-01T14:09:18Z","git_url":"git://github.com/awslabs/cfncluster.git","ssh_url":"git@github.com:awslabs/cfncluster.git","clone_url":"https://github.com/awslabs/cfncluster.git","svn_url":"https://github.com/awslabs/cfncluster","homepage":"http://aws.amazon.com/hpc/cfncluster","size":1748,"stargazers_count":286,"watchers_count":286,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":115,"mirror_url":null,"archived":false,"open_issues_count":91,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":115,"open_issues":91,"watchers":286,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/awslabs/cfncluster/pulls/471"},"html":{"href":"https://github.com/awslabs/cfncluster/pull/471"},"issue":{"href":"https://api.github.com/repos/awslabs/cfncluster/issues/471"},"comments":{"href":"https://api.github.com/repos/awslabs/cfncluster/issues/471/comments"},"review_comments":{"href":"https://api.github.com/repos/awslabs/cfncluster/pulls/471/comments"},"review_comment":{"href":"https://api.github.com/repos/awslabs/cfncluster/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/awslabs/cfncluster/pulls/471/commits"},"statuses":{"href":"https://api.github.com/repos/awslabs/cfncluster/statuses/577f9eb84733ba2cff93fb24a3ddd198007b8713"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"mauri-melato","id":1615209,"node_id":"MDQ6VXNlcjE2MTUyMDk=","avatar_url":"https://avatars3.githubusercontent.com/u/1615209?v=4","gravatar_id":"","url":"https://api.github.com/users/mauri-melato","html_url":"https://github.com/mauri-melato","followers_url":"https://api.github.com/users/mauri-melato/followers","following_url":"https://api.github.com/users/mauri-melato/following{/other_user}","gists_url":"https://api.github.com/users/mauri-melato/gists{/gist_id}","starred_url":"https://api.github.com/users/mauri-melato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauri-melato/subscriptions","organizations_url":"https://api.github.com/users/mauri-melato/orgs","repos_url":"https://api.github.com/users/mauri-melato/repos","events_url":"https://api.github.com/users/mauri-melato/events{/privacy}","received_events_url":"https://api.github.com/users/mauri-melato/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":21,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"mauri-melato"}}