Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCPBUGS-5529: Fix updating numa core siblings map in GetCpuSiblings function #564

Merged

Conversation

mrniranjan
Copy link
Contributor

move the delete operation outside of for loop.
Also minor fixes to offline tests to check if the worker node has 20 cores earlier in the test function

Signed-off-by: Niranjan M.R mrniranjan@redhat.com

@mrniranjan mrniranjan changed the title Fix updating numa core siblings map in GetCpuSiblings function OCPBUGS-5529: Fix updating numa core siblings map in GetCpuSiblings function Feb 8, 2023
@openshift-ci-robot openshift-ci-robot added jira/severity-low Referenced Jira bug's severity is low for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Feb 8, 2023
@openshift-ci-robot
Copy link
Contributor

@mrniranjan: This pull request references Jira Issue OCPBUGS-5529, which is invalid:

  • expected the bug to be in one of the following states: NEW, ASSIGNED, POST, but it is ON_QA instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

move the delete operation outside of for loop.
Also minor fixes to offline tests to check if the worker node has 20 cores earlier in the test function

Signed-off-by: Niranjan M.R mrniranjan@redhat.com

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@mrniranjan
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot
Copy link
Contributor

@mrniranjan: This pull request references Jira Issue OCPBUGS-5529, which is invalid:

  • expected the bug to be in one of the following states: NEW, ASSIGNED, POST, but it is ON_QA instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

/jira refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@mrniranjan
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Feb 8, 2023
@openshift-ci-robot
Copy link
Contributor

@mrniranjan: This pull request references Jira Issue OCPBUGS-5529, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.13.0) matches configured target version for branch (4.13.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (nkononov@redhat.com), skipping review request.

In response to this:

/jira refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@mrniranjan
Copy link
Contributor Author

/retest-required

@mrniranjan
Copy link
Contributor Author

/test e2e-gcp-pao-updating-profile

delete(numaCoreSiblings[key], coreKey)
for _, sibling := range numaCoreSiblings[key][coreKey] {
cpuSiblings = append(cpuSiblings, strconv.Itoa(sibling))
numanode = key
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is corekey, not numa node.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, nevermind, I see what you did here.

}
}
delete(numaCoreSiblings[numanode], coreKey)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But shouldn't this be inside the numaCoreSibligs loop and use the corekey? Your code will not work if the siblings are not coming from the same NUMA node anyway.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not simply use:

for key := range numaCoreSiblings {
    for _, c := range numaCoreSiblings[key][coreKey] {
        cpuSiblings = append(cpuSiblings, strconv.Itoa(c))
    }
    delete(numaCoreSiblings[key], coreKey)
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we put the delete operation inside the outer for loop, the key will get modified because the for loop continues further . So we will have to add a break and end the loop , otherwise it will endup removing a some other core or fail

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the Patch with a if condition to check if the map has core key exists , if exist, we move to the internal for loop.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First I have my concerns about a "Get" function that modifies its input parameters...

Regarding delete operation. If I understood correctly you are gonna end deleting all the CPUs of a Core. All of them would usually belong to the same NUMA node so deleting them at the end should work ( I think) but it is confusing.
Either you enforce explicitly in the code the fact that all the cpus in a core must belong to one NumaNode or you create a list of numanodes in the for loops and then delete them afterwards... something like

func GetCpuSiblings(numaCoreSiblings map[int]map[int][]int, coreKey int) []string {
	var cpuSiblings []string
	var targetNumaNodes []int
	for numaNode := range numaCoreSiblings {
		for _, c := range numaCoreSiblings[numaNode][coreKey] {
			cpuSiblings = append(cpuSiblings, strconv.Itoa(c))
			targetNumaNodes = append(targetNumaNodes, numaNode)
		}
	}

	for numaNode := range targetNumaNodes {
		delete(numaCoreSiblings[numaNode], coreKey)
	}

	return cpuSiblings
}

or even better extract deletion to another function.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jlojosnegros , let me explain the use case more elaborately :

For example, i wanted to offline cpus from higher core ids

  1. For the first time, i query the worker nodes and populate the map with numa node information which may bee like this:

Map = map[0:map[0:[0 40] 2:[2 42] 4:[4 44] 6:[6 46] 8:[8 48] 10:[10 50] 12:[12 52] 14:[14 54] 16:[16 56] 18:[18 58] 20:[20 60] 22:[22 62] 24:[24 64] 26:[26 66] 28:[28 68] 30:[30 70] 32:[32 72] 34:[34 74] 36:[36 76] 38:[38 78]] 1:map[1:[1 41] 3:[3 43] 5:[5 45] 7:[7 47] 9:[9 49] 11:[11 51] 13:[13 53] 15:[15 55] 17:[17 57] 19:[19 59] 21:[21 61] 23:[23 63] 25:[25 65] 27:[27 67] 29:[29 69] 31:[31 71] 33:[33 73] 35:[35 75] 37:[37 77] 39:[39 79]]]

Now i need pickup 38th core from node0 and 39th core from node 1 , this is stright forward,
a. loop to each numa node
b. sort all the cores from a numa node
c. pick the highest core id , gets its siblings, in a offlineCpuList
d. once fetched we remove that core from the Map

Now i need cpusiblings from reserved cpus, For that i am taking core 0, 1, 2 as my reserved cores: In this case core 0 , 2 fall on numa node 0 and core 1 on numa node 1

Now in the GetCpuSiblings function, i passing the map and core id, (core ids are always unique). So i query each node, if core exist in that map, fetch the cpu siblings and remove them from the map .

The reason i need to delete the coreid once fetched is because, when i want cpus for isolated, I can use all the remaining core siblings, if i don't delete, i will get the cpu siblings which are already used in offline and reserved.

The code to me looks simple ,

func GetCpuSiblings(numaCoreSiblings map[int]map[int][]int, coreKey int) []string {                                                                                                                           
         var cpuSiblings []string                                                                                                                                                                              
         // key here is the Numa Node                                                                                                                                                                          
         for key := range numaCoreSiblings {                                                                                                                                                                   
                 // Here we check in that specific numa node , the coreid exists                                                                                                                               
                 _, ok := numaCoreSiblings[key][coreKey]                                                                                                                                                       
                 // if exists                                                                                                                                                                                  
                 if ok {                                                                                                                                                                                       
                         for _, sibling := range numaCoreSiblings[key][coreKey] {                                                                                                                              
                                 cpuSiblings = append(cpuSiblings, strconv.Itoa(sibling))                                                                                                                      
                         }                                                                                                                                                                                     
                         // once the siblings are returned remove the core                                                                                                                                     
                         // from which the siblings are returned                                                                                                                                               
                         delete(numaCoreSiblings[key], coreKey)                                                                                                                                                
                 }                                                                                                                                                                                             
          }                                                                                                                                                                                                     
         return cpuSiblings                                                                                                                                                                                    
 }     

Now as you suggested its possible to remove the delete Operation to another function, in which case i have to duplicate some of the above like this:

func DeleteCpuSiblings(numaCoreSiblings map[int]map[int][]int, coreKey int) {                                                                                                                                 
         for key := range numaCoreSiblings {                                                                                                                                                                   
                _, ok := numaCoreSiblings[key][coreKey]                                                                                                                                                       
                 if ok {                                                                                                                                                                                       
                         delete(numaCoreSiblings[key], coreKey)                                                                                                                                                
                }                                                                                                                                                                                             
         }                                                                                                                                                                                                     
}   

I can do it this , let me know your views.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok ... I understand what you wanna do.

My only point here, and maybe it is just a matter of my "taste" so to say, is that I would not expect a "get" function to modify its parameters. I know it is just a matter of naming ... so not a big deal if everybody else is ok with that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The point about naming is right and I concur.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apart from that lgtm ...
Let's give some time to see other reviewer's opinion

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ffromani @jlojosnegros Thanks for inputs, i have renamed the function to GetAndRemoveCpuSiblingsFromMap ,

@mrniranjan
Copy link
Contributor Author

/retest-required

@mrniranjan
Copy link
Contributor Author

/test e2e-gcp-pao-updating-profile

5 similar comments
@mrniranjan
Copy link
Contributor Author

/test e2e-gcp-pao-updating-profile

@mrniranjan
Copy link
Contributor Author

/test e2e-gcp-pao-updating-profile

@mrniranjan
Copy link
Contributor Author

/test e2e-gcp-pao-updating-profile

@mrniranjan
Copy link
Contributor Author

/test e2e-gcp-pao-updating-profile

@mrniranjan
Copy link
Contributor Author

/test e2e-gcp-pao-updating-profile

Niranjan M.R added 2 commits May 25, 2023 12:49
move the delete operation outside of for loop.
Also minor fixes to offline tests to check if the worker node
has 20 cores earlier in the test function

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
@@ -445,9 +445,16 @@ func GetByCpuCapacity(nodesList []corev1.Node, cpuQty int) []corev1.Node {
// Also updates the map by deleting the cpu siblings returned
func GetCpuSiblings(numaCoreSiblings map[int]map[int][]int, coreKey int) []string {
var cpuSiblings []string
// key here is Numa node id
for key := range numaCoreSiblings {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor comment : as this is numa node id maybe using numaKey ?

Update all occurances fo getCpuSiblings to GetAndRemoveCpuSiblingsFromMap
in the test cases

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
@jlojosnegros
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 25, 2023
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 77f6222 and 2 for PR HEAD 6cd35e3 in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 484ea42 and 1 for PR HEAD 6cd35e3 in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD ce8bd90 and 0 for PR HEAD 6cd35e3 in total

@ffromani
Copy link
Contributor

/override ci/prow/e2e-gcp-pao

@ffromani
Copy link
Contributor

failures in the e2e-gcp-pao are (very) unlikely to be caused or worsened by this PR and should be investigated in another PR.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 30, 2023

@ffromani: Overrode contexts on behalf of ffromani: ci/prow/e2e-gcp-pao

In response to this:

/override ci/prow/e2e-gcp-pao

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ffromani
Copy link
Contributor

/retest

@openshift-ci-robot
Copy link
Contributor

/hold

Revision 6cd35e3 was retested 3 times: holding

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 30, 2023
@mrniranjan
Copy link
Contributor Author

/test e2e-aws-ovn

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 31, 2023

@mrniranjan: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@mrniranjan
Copy link
Contributor Author

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 31, 2023
@openshift-merge-robot openshift-merge-robot merged commit 94c21e1 into openshift:master May 31, 2023
12 checks passed
@openshift-ci-robot
Copy link
Contributor

@mrniranjan: Jira Issue OCPBUGS-5529: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-5529 has been moved to the MODIFIED state.

In response to this:

move the delete operation outside of for loop.
Also minor fixes to offline tests to check if the worker node has 20 cores earlier in the test function

Signed-off-by: Niranjan M.R mrniranjan@redhat.com

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@mrniranjan
Copy link
Contributor Author

/cherry-pick release-4.13

@openshift-cherrypick-robot

@mrniranjan: new pull request created: #669

In response to this:

/cherry-pick release-4.13

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

IlyaTyomkin pushed a commit to IlyaTyomkin/cluster-node-tuning-operator that referenced this pull request Jun 1, 2023
…unction (openshift#564)

* Fix updating numa core siblings map in GetCpuSiblings function

move the delete operation outside of for loop.
Also minor fixes to offline tests to check if the worker node
has 20 cores earlier in the test function

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* check if the numacoresiblings map cotains appropriate cpu core key

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings function to GetAndRemoveCpuSiblingsFromMap

Update all occurances fo getCpuSiblings to GetAndRemoveCpuSiblingsFromMap
in the test cases

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings to GetAndRemoveCpuSiblingsFromMap

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

---------

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

check ocp version and export CNF_TEST_IMAGE variable with appropriate cluster version (openshift#584)

display message detecting ocp version and fix oc get command

Fix latency scripts to check ocp version and use appropriate cnf-tests image

Also fixing typo to use CNF_TESTS_IMAGE instead CNF_TEST_IMAGE

fixing check for CNF_TESTS_IMAGE env variable name

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-12978 use WatchNamespace() when deleting Profiles (openshift#644)

set function for commands

commented 2 libraries:os and errors

added ocp command

debug command set
IlyaTyomkin pushed a commit to IlyaTyomkin/cluster-node-tuning-operator that referenced this pull request Jun 1, 2023
Removing  cpu-quota.crio.io: disable annotation.

Having cpu quota and irq balanced annotation causes
pod to fail (https://issues.redhat.com/browse/OCPBUGS-14018)

skip irqbalance tests due to known bug OCPBUGS-14018

"Should not overwrite the banned CPU set on tuned restart" test fails
because the pod fails to start when cpu quota and irq loadbalance annotations
are added. Refer: https://issues.redhat.com/browse/OCPBUGS-14018

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-5529: Fix updating numa core siblings map in GetCpuSiblings function (openshift#564)

* Fix updating numa core siblings map in GetCpuSiblings function

move the delete operation outside of for loop.
Also minor fixes to offline tests to check if the worker node
has 20 cores earlier in the test function

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* check if the numacoresiblings map cotains appropriate cpu core key

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings function to GetAndRemoveCpuSiblingsFromMap

Update all occurances fo getCpuSiblings to GetAndRemoveCpuSiblingsFromMap
in the test cases

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings to GetAndRemoveCpuSiblingsFromMap

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

---------

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

check ocp version and export CNF_TEST_IMAGE variable with appropriate cluster version (openshift#584)

display message detecting ocp version and fix oc get command

Fix latency scripts to check ocp version and use appropriate cnf-tests image

Also fixing typo to use CNF_TESTS_IMAGE instead CNF_TEST_IMAGE

fixing check for CNF_TESTS_IMAGE env variable name

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-12978 use WatchNamespace() when deleting Profiles (openshift#644)

set function for commands

commented 2 libraries:os and errors

added ocp command

debug command set
IlyaTyomkin pushed a commit to IlyaTyomkin/cluster-node-tuning-operator that referenced this pull request Jun 1, 2023
Removing  cpu-quota.crio.io: disable annotation.

Having cpu quota and irq balanced annotation causes
pod to fail (https://issues.redhat.com/browse/OCPBUGS-14018)

skip irqbalance tests due to known bug OCPBUGS-14018

"Should not overwrite the banned CPU set on tuned restart" test fails
because the pod fails to start when cpu quota and irq loadbalance annotations
are added. Refer: https://issues.redhat.com/browse/OCPBUGS-14018

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-5529: Fix updating numa core siblings map in GetCpuSiblings function (openshift#564)

* Fix updating numa core siblings map in GetCpuSiblings function

move the delete operation outside of for loop.
Also minor fixes to offline tests to check if the worker node
has 20 cores earlier in the test function

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* check if the numacoresiblings map cotains appropriate cpu core key

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings function to GetAndRemoveCpuSiblingsFromMap

Update all occurances fo getCpuSiblings to GetAndRemoveCpuSiblingsFromMap
in the test cases

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings to GetAndRemoveCpuSiblingsFromMap

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

---------

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

check ocp version and export CNF_TEST_IMAGE variable with appropriate cluster version (openshift#584)

display message detecting ocp version and fix oc get command

Fix latency scripts to check ocp version and use appropriate cnf-tests image

Also fixing typo to use CNF_TESTS_IMAGE instead CNF_TEST_IMAGE

fixing check for CNF_TESTS_IMAGE env variable name

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-12978 use WatchNamespace() when deleting Profiles (openshift#644)

set function for commands

commented 2 libraries:os and errors

added ocp command

debug command set
IlyaTyomkin pushed a commit to IlyaTyomkin/cluster-node-tuning-operator that referenced this pull request Jun 1, 2023
…unction (openshift#564)

* Fix updating numa core siblings map in GetCpuSiblings function

move the delete operation outside of for loop.
Also minor fixes to offline tests to check if the worker node
has 20 cores earlier in the test function

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* check if the numacoresiblings map cotains appropriate cpu core key

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings function to GetAndRemoveCpuSiblingsFromMap

Update all occurances fo getCpuSiblings to GetAndRemoveCpuSiblingsFromMap
in the test cases

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings to GetAndRemoveCpuSiblingsFromMap

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

---------

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

check ocp version and export CNF_TEST_IMAGE variable with appropriate cluster version (openshift#584)

display message detecting ocp version and fix oc get command

Fix latency scripts to check ocp version and use appropriate cnf-tests image

Also fixing typo to use CNF_TESTS_IMAGE instead CNF_TEST_IMAGE

fixing check for CNF_TESTS_IMAGE env variable name

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

Remove cpu-quota.crio.io: disable annotation (openshift#663)

Removing  cpu-quota.crio.io: disable annotation.

Having cpu quota and irq balanced annotation causes
pod to fail (https://issues.redhat.com/browse/OCPBUGS-14018)

skip irqbalance tests due to known bug OCPBUGS-14018

"Should not overwrite the banned CPU set on tuned restart" test fails
because the pod fails to start when cpu quota and irq loadbalance annotations
are added. Refer: https://issues.redhat.com/browse/OCPBUGS-14018

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-5529: Fix updating numa core siblings map in GetCpuSiblings function (openshift#564)

* Fix updating numa core siblings map in GetCpuSiblings function

move the delete operation outside of for loop.
Also minor fixes to offline tests to check if the worker node
has 20 cores earlier in the test function

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* check if the numacoresiblings map cotains appropriate cpu core key

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings function to GetAndRemoveCpuSiblingsFromMap

Update all occurances fo getCpuSiblings to GetAndRemoveCpuSiblingsFromMap
in the test cases

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings to GetAndRemoveCpuSiblingsFromMap

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

---------

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

check ocp version and export CNF_TEST_IMAGE variable with appropriate cluster version (openshift#584)

display message detecting ocp version and fix oc get command

Fix latency scripts to check ocp version and use appropriate cnf-tests image

Also fixing typo to use CNF_TESTS_IMAGE instead CNF_TEST_IMAGE

fixing check for CNF_TESTS_IMAGE env variable name

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-12978 use WatchNamespace() when deleting Profiles (openshift#644)

set function for commands

commented 2 libraries:os and errors

added ocp command

debug command set
IlyaTyomkin pushed a commit to IlyaTyomkin/cluster-node-tuning-operator that referenced this pull request Jun 1, 2023
Removing  cpu-quota.crio.io: disable annotation.

Having cpu quota and irq balanced annotation causes
pod to fail (https://issues.redhat.com/browse/OCPBUGS-14018)

skip irqbalance tests due to known bug OCPBUGS-14018

"Should not overwrite the banned CPU set on tuned restart" test fails
because the pod fails to start when cpu quota and irq loadbalance annotations
are added. Refer: https://issues.redhat.com/browse/OCPBUGS-14018

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-5529: Fix updating numa core siblings map in GetCpuSiblings function (openshift#564)

* Fix updating numa core siblings map in GetCpuSiblings function

move the delete operation outside of for loop.
Also minor fixes to offline tests to check if the worker node
has 20 cores earlier in the test function

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* check if the numacoresiblings map cotains appropriate cpu core key

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings function to GetAndRemoveCpuSiblingsFromMap

Update all occurances fo getCpuSiblings to GetAndRemoveCpuSiblingsFromMap
in the test cases

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings to GetAndRemoveCpuSiblingsFromMap

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

---------

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

check ocp version and export CNF_TEST_IMAGE variable with appropriate cluster version (openshift#584)

display message detecting ocp version and fix oc get command

Fix latency scripts to check ocp version and use appropriate cnf-tests image

Also fixing typo to use CNF_TESTS_IMAGE instead CNF_TEST_IMAGE

fixing check for CNF_TESTS_IMAGE env variable name

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

Remove cpu-quota.crio.io: disable annotation (openshift#663)

Removing  cpu-quota.crio.io: disable annotation.

Having cpu quota and irq balanced annotation causes
pod to fail (https://issues.redhat.com/browse/OCPBUGS-14018)

skip irqbalance tests due to known bug OCPBUGS-14018

"Should not overwrite the banned CPU set on tuned restart" test fails
because the pod fails to start when cpu quota and irq loadbalance annotations
are added. Refer: https://issues.redhat.com/browse/OCPBUGS-14018

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-5529: Fix updating numa core siblings map in GetCpuSiblings function (openshift#564)

* Fix updating numa core siblings map in GetCpuSiblings function

move the delete operation outside of for loop.
Also minor fixes to offline tests to check if the worker node
has 20 cores earlier in the test function

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* check if the numacoresiblings map cotains appropriate cpu core key

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings function to GetAndRemoveCpuSiblingsFromMap

Update all occurances fo getCpuSiblings to GetAndRemoveCpuSiblingsFromMap
in the test cases

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings to GetAndRemoveCpuSiblingsFromMap

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

---------

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

check ocp version and export CNF_TEST_IMAGE variable with appropriate cluster version (openshift#584)

display message detecting ocp version and fix oc get command

Fix latency scripts to check ocp version and use appropriate cnf-tests image

Also fixing typo to use CNF_TESTS_IMAGE instead CNF_TEST_IMAGE

fixing check for CNF_TESTS_IMAGE env variable name

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-12978 use WatchNamespace() when deleting Profiles (openshift#644)

set function for commands

commented 2 libraries:os and errors

added ocp command

debug command set
IlyaTyomkin pushed a commit to IlyaTyomkin/cluster-node-tuning-operator that referenced this pull request Jun 1, 2023
Removing  cpu-quota.crio.io: disable annotation.

Having cpu quota and irq balanced annotation causes
pod to fail (https://issues.redhat.com/browse/OCPBUGS-14018)

skip irqbalance tests due to known bug OCPBUGS-14018

"Should not overwrite the banned CPU set on tuned restart" test fails
because the pod fails to start when cpu quota and irq loadbalance annotations
are added. Refer: https://issues.redhat.com/browse/OCPBUGS-14018

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-5529: Fix updating numa core siblings map in GetCpuSiblings function (openshift#564)

* Fix updating numa core siblings map in GetCpuSiblings function

move the delete operation outside of for loop.
Also minor fixes to offline tests to check if the worker node
has 20 cores earlier in the test function

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* check if the numacoresiblings map cotains appropriate cpu core key

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings function to GetAndRemoveCpuSiblingsFromMap

Update all occurances fo getCpuSiblings to GetAndRemoveCpuSiblingsFromMap
in the test cases

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings to GetAndRemoveCpuSiblingsFromMap

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

---------

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

check ocp version and export CNF_TEST_IMAGE variable with appropriate cluster version (openshift#584)

display message detecting ocp version and fix oc get command

Fix latency scripts to check ocp version and use appropriate cnf-tests image

Also fixing typo to use CNF_TESTS_IMAGE instead CNF_TEST_IMAGE

fixing check for CNF_TESTS_IMAGE env variable name

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

Remove cpu-quota.crio.io: disable annotation (openshift#663)

Removing  cpu-quota.crio.io: disable annotation.

Having cpu quota and irq balanced annotation causes
pod to fail (https://issues.redhat.com/browse/OCPBUGS-14018)

skip irqbalance tests due to known bug OCPBUGS-14018

"Should not overwrite the banned CPU set on tuned restart" test fails
because the pod fails to start when cpu quota and irq loadbalance annotations
are added. Refer: https://issues.redhat.com/browse/OCPBUGS-14018

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-5529: Fix updating numa core siblings map in GetCpuSiblings function (openshift#564)

* Fix updating numa core siblings map in GetCpuSiblings function

move the delete operation outside of for loop.
Also minor fixes to offline tests to check if the worker node
has 20 cores earlier in the test function

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* check if the numacoresiblings map cotains appropriate cpu core key

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings function to GetAndRemoveCpuSiblingsFromMap

Update all occurances fo getCpuSiblings to GetAndRemoveCpuSiblingsFromMap
in the test cases

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings to GetAndRemoveCpuSiblingsFromMap

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

---------

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

check ocp version and export CNF_TEST_IMAGE variable with appropriate cluster version (openshift#584)

display message detecting ocp version and fix oc get command

Fix latency scripts to check ocp version and use appropriate cnf-tests image

Also fixing typo to use CNF_TESTS_IMAGE instead CNF_TEST_IMAGE

fixing check for CNF_TESTS_IMAGE env variable name

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-12978 use WatchNamespace() when deleting Profiles (openshift#644)

set function for commands

commented 2 libraries:os and errors

added ocp command

debug command set
IlyaTyomkin pushed a commit to IlyaTyomkin/cluster-node-tuning-operator that referenced this pull request Jun 1, 2023
… cluster version (openshift#584)

display message detecting ocp version and fix oc get command

Fix latency scripts to check ocp version and use appropriate cnf-tests image

Also fixing typo to use CNF_TESTS_IMAGE instead CNF_TEST_IMAGE

fixing check for CNF_TESTS_IMAGE env variable name

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

Remove cpu-quota.crio.io: disable annotation (openshift#663)

Removing  cpu-quota.crio.io: disable annotation.

Having cpu quota and irq balanced annotation causes
pod to fail (https://issues.redhat.com/browse/OCPBUGS-14018)

skip irqbalance tests due to known bug OCPBUGS-14018

"Should not overwrite the banned CPU set on tuned restart" test fails
because the pod fails to start when cpu quota and irq loadbalance annotations
are added. Refer: https://issues.redhat.com/browse/OCPBUGS-14018

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-5529: Fix updating numa core siblings map in GetCpuSiblings function (openshift#564)

* Fix updating numa core siblings map in GetCpuSiblings function

move the delete operation outside of for loop.
Also minor fixes to offline tests to check if the worker node
has 20 cores earlier in the test function

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* check if the numacoresiblings map cotains appropriate cpu core key

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings function to GetAndRemoveCpuSiblingsFromMap

Update all occurances fo getCpuSiblings to GetAndRemoveCpuSiblingsFromMap
in the test cases

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings to GetAndRemoveCpuSiblingsFromMap

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

---------

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

check ocp version and export CNF_TEST_IMAGE variable with appropriate cluster version (openshift#584)

display message detecting ocp version and fix oc get command

Fix latency scripts to check ocp version and use appropriate cnf-tests image

Also fixing typo to use CNF_TESTS_IMAGE instead CNF_TEST_IMAGE

fixing check for CNF_TESTS_IMAGE env variable name

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

Remove cpu-quota.crio.io: disable annotation (openshift#663)

Removing  cpu-quota.crio.io: disable annotation.

Having cpu quota and irq balanced annotation causes
pod to fail (https://issues.redhat.com/browse/OCPBUGS-14018)

skip irqbalance tests due to known bug OCPBUGS-14018

"Should not overwrite the banned CPU set on tuned restart" test fails
because the pod fails to start when cpu quota and irq loadbalance annotations
are added. Refer: https://issues.redhat.com/browse/OCPBUGS-14018

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-5529: Fix updating numa core siblings map in GetCpuSiblings function (openshift#564)

* Fix updating numa core siblings map in GetCpuSiblings function

move the delete operation outside of for loop.
Also minor fixes to offline tests to check if the worker node
has 20 cores earlier in the test function

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* check if the numacoresiblings map cotains appropriate cpu core key

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings function to GetAndRemoveCpuSiblingsFromMap

Update all occurances fo getCpuSiblings to GetAndRemoveCpuSiblingsFromMap
in the test cases

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings to GetAndRemoveCpuSiblingsFromMap

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

---------

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

check ocp version and export CNF_TEST_IMAGE variable with appropriate cluster version (openshift#584)

display message detecting ocp version and fix oc get command

Fix latency scripts to check ocp version and use appropriate cnf-tests image

Also fixing typo to use CNF_TESTS_IMAGE instead CNF_TEST_IMAGE

fixing check for CNF_TESTS_IMAGE env variable name

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-12978 use WatchNamespace() when deleting Profiles (openshift#644)

set function for commands

commented 2 libraries:os and errors

added ocp command

debug command set
IlyaTyomkin pushed a commit to IlyaTyomkin/cluster-node-tuning-operator that referenced this pull request Jun 1, 2023
… cluster version (openshift#584)

display message detecting ocp version and fix oc get command

Fix latency scripts to check ocp version and use appropriate cnf-tests image

Also fixing typo to use CNF_TESTS_IMAGE instead CNF_TEST_IMAGE

fixing check for CNF_TESTS_IMAGE env variable name

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

check ocp version and export CNF_TEST_IMAGE variable with appropriate cluster version (openshift#584)

display message detecting ocp version and fix oc get command

Fix latency scripts to check ocp version and use appropriate cnf-tests image

Also fixing typo to use CNF_TESTS_IMAGE instead CNF_TEST_IMAGE

fixing check for CNF_TESTS_IMAGE env variable name

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

Remove cpu-quota.crio.io: disable annotation (openshift#663)

Removing  cpu-quota.crio.io: disable annotation.

Having cpu quota and irq balanced annotation causes
pod to fail (https://issues.redhat.com/browse/OCPBUGS-14018)

skip irqbalance tests due to known bug OCPBUGS-14018

"Should not overwrite the banned CPU set on tuned restart" test fails
because the pod fails to start when cpu quota and irq loadbalance annotations
are added. Refer: https://issues.redhat.com/browse/OCPBUGS-14018

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-5529: Fix updating numa core siblings map in GetCpuSiblings function (openshift#564)

* Fix updating numa core siblings map in GetCpuSiblings function

move the delete operation outside of for loop.
Also minor fixes to offline tests to check if the worker node
has 20 cores earlier in the test function

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* check if the numacoresiblings map cotains appropriate cpu core key

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings function to GetAndRemoveCpuSiblingsFromMap

Update all occurances fo getCpuSiblings to GetAndRemoveCpuSiblingsFromMap
in the test cases

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings to GetAndRemoveCpuSiblingsFromMap

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

---------

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

check ocp version and export CNF_TEST_IMAGE variable with appropriate cluster version (openshift#584)

display message detecting ocp version and fix oc get command

Fix latency scripts to check ocp version and use appropriate cnf-tests image

Also fixing typo to use CNF_TESTS_IMAGE instead CNF_TEST_IMAGE

fixing check for CNF_TESTS_IMAGE env variable name

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

Remove cpu-quota.crio.io: disable annotation (openshift#663)

Removing  cpu-quota.crio.io: disable annotation.

Having cpu quota and irq balanced annotation causes
pod to fail (https://issues.redhat.com/browse/OCPBUGS-14018)

skip irqbalance tests due to known bug OCPBUGS-14018

"Should not overwrite the banned CPU set on tuned restart" test fails
because the pod fails to start when cpu quota and irq loadbalance annotations
are added. Refer: https://issues.redhat.com/browse/OCPBUGS-14018

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-5529: Fix updating numa core siblings map in GetCpuSiblings function (openshift#564)

* Fix updating numa core siblings map in GetCpuSiblings function

move the delete operation outside of for loop.
Also minor fixes to offline tests to check if the worker node
has 20 cores earlier in the test function

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* check if the numacoresiblings map cotains appropriate cpu core key

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings function to GetAndRemoveCpuSiblingsFromMap

Update all occurances fo getCpuSiblings to GetAndRemoveCpuSiblingsFromMap
in the test cases

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings to GetAndRemoveCpuSiblingsFromMap

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

---------

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

check ocp version and export CNF_TEST_IMAGE variable with appropriate cluster version (openshift#584)

display message detecting ocp version and fix oc get command

Fix latency scripts to check ocp version and use appropriate cnf-tests image

Also fixing typo to use CNF_TESTS_IMAGE instead CNF_TEST_IMAGE

fixing check for CNF_TESTS_IMAGE env variable name

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-12978 use WatchNamespace() when deleting Profiles (openshift#644)

set function for commands

commented 2 libraries:os and errors

added ocp command

debug command set
IlyaTyomkin pushed a commit to IlyaTyomkin/cluster-node-tuning-operator that referenced this pull request Jun 1, 2023
… cluster version (openshift#584)

display message detecting ocp version and fix oc get command

Fix latency scripts to check ocp version and use appropriate cnf-tests image

Also fixing typo to use CNF_TESTS_IMAGE instead CNF_TEST_IMAGE

fixing check for CNF_TESTS_IMAGE env variable name

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

check ocp version and export CNF_TEST_IMAGE variable with appropriate cluster version (openshift#584)

display message detecting ocp version and fix oc get command

Fix latency scripts to check ocp version and use appropriate cnf-tests image

Also fixing typo to use CNF_TESTS_IMAGE instead CNF_TEST_IMAGE

fixing check for CNF_TESTS_IMAGE env variable name

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

Remove cpu-quota.crio.io: disable annotation (openshift#663)

Removing  cpu-quota.crio.io: disable annotation.

Having cpu quota and irq balanced annotation causes
pod to fail (https://issues.redhat.com/browse/OCPBUGS-14018)

skip irqbalance tests due to known bug OCPBUGS-14018

"Should not overwrite the banned CPU set on tuned restart" test fails
because the pod fails to start when cpu quota and irq loadbalance annotations
are added. Refer: https://issues.redhat.com/browse/OCPBUGS-14018

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-5529: Fix updating numa core siblings map in GetCpuSiblings function (openshift#564)

* Fix updating numa core siblings map in GetCpuSiblings function

move the delete operation outside of for loop.
Also minor fixes to offline tests to check if the worker node
has 20 cores earlier in the test function

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* check if the numacoresiblings map cotains appropriate cpu core key

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings function to GetAndRemoveCpuSiblingsFromMap

Update all occurances fo getCpuSiblings to GetAndRemoveCpuSiblingsFromMap
in the test cases

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings to GetAndRemoveCpuSiblingsFromMap

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

---------

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

check ocp version and export CNF_TEST_IMAGE variable with appropriate cluster version (openshift#584)

display message detecting ocp version and fix oc get command

Fix latency scripts to check ocp version and use appropriate cnf-tests image

Also fixing typo to use CNF_TESTS_IMAGE instead CNF_TEST_IMAGE

fixing check for CNF_TESTS_IMAGE env variable name

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

Remove cpu-quota.crio.io: disable annotation (openshift#663)

Removing  cpu-quota.crio.io: disable annotation.

Having cpu quota and irq balanced annotation causes
pod to fail (https://issues.redhat.com/browse/OCPBUGS-14018)

skip irqbalance tests due to known bug OCPBUGS-14018

"Should not overwrite the banned CPU set on tuned restart" test fails
because the pod fails to start when cpu quota and irq loadbalance annotations
are added. Refer: https://issues.redhat.com/browse/OCPBUGS-14018

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-5529: Fix updating numa core siblings map in GetCpuSiblings function (openshift#564)

* Fix updating numa core siblings map in GetCpuSiblings function

move the delete operation outside of for loop.
Also minor fixes to offline tests to check if the worker node
has 20 cores earlier in the test function

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* check if the numacoresiblings map cotains appropriate cpu core key

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings function to GetAndRemoveCpuSiblingsFromMap

Update all occurances fo getCpuSiblings to GetAndRemoveCpuSiblingsFromMap
in the test cases

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

* Rename GetCpuSiblings to GetAndRemoveCpuSiblingsFromMap

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>

---------

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

check ocp version and export CNF_TEST_IMAGE variable with appropriate cluster version (openshift#584)

display message detecting ocp version and fix oc get command

Fix latency scripts to check ocp version and use appropriate cnf-tests image

Also fixing typo to use CNF_TESTS_IMAGE instead CNF_TEST_IMAGE

fixing check for CNF_TESTS_IMAGE env variable name

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
Co-authored-by: Niranjan M.R <mrniranjan@redhat.com>

OCPBUGS-12978 use WatchNamespace() when deleting Profiles (openshift#644)

set function for commands

commented 2 libraries:os and errors

added ocp command

debug command set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. jira/severity-low Referenced Jira bug's severity is low for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants