DO280-OCP4.14-en-2-20240725: Exectly follow by Solution of Chapter 4 Network Security Lab, Compare my files with supplied solution files. However get grading errors:
Please, any comments
@shura Thanks for reaching out
I tried to replicate the issue, but it did not occur.
I think you need to check and adjust the network policies
Hi, It worked for me.
Review the network policy section, it should work.
Or clean the lab and then repeat all the tasks from scratch
Thank for attention to my issue.
I try some attempt to reproduce an issue presented above. To be sure I follow files supplied in solution only. Could not get same issue, but I found some different one. Look, please, here:
[student@workstation ~]$ oc apply -f /home/student/DO280/solutions/network-review/07_product-ingresspolicy.yaml
networkpolicy.networking.k8s.io/product-ingress-policy created
[student@workstation ~]$ oc apply -f /home/student/DO280/solutions/network-review/09_stock-ingresspolicy.yaml
networkpolicy.networking.k8s.io/stock-ingress-policy created
[student@workstation ~]$ oc get networkpolicy
NAME POD-SELECTOR AGE
product-ingress-policy app=product 45s
stock-ingress-policy app=stock 38s
[student@workstation ~]$ lab grade network-review
SUCCESS Waiting for cluster
SUCCESS Checking the stock service annotations
SUCCESS Checking the stock container definition in the stock deployment
SUCCESS Checking the product container definition in the product deployment
SUCCESS Checking tls between product and stock pods
SUCCESS Checking tls from outside of the cluster using the /home/student/DO280/labs/network-review/certs/ca.pem CA certificate
SUCCESS Verify that pods in network-review other than product cannot connect to the stock pod
SUCCESS Verify that pods in network-review cannot connect to the product pod
[student@workstation ~]$ oc delete networkpolicy stock-ingress-policy
networkpolicy.networking.k8s.io "stock-ingress-policy" deleted
[student@workstation ~]$ oc delete networkpolicy product-ingress-policy
networkpolicy.networking.k8s.io "product-ingress-policy" deleted
[student@workstation ~]$ lab grade network-review
SUCCESS Waiting for cluster
SUCCESS Checking the stock service annotations
SUCCESS Checking the stock container definition in the stock deployment
SUCCESS Checking the product container definition in the product deployment
SUCCESS Checking tls between product and stock pods
SUCCESS Checking tls from outside of the cluster using the /home/student/DO280/labs/network-review/certs/ca.pem CA certificate
SUCCESS Verify that pods in network-review other than product cannot connect to the stock pod
SUCCESS Verify that pods in network-review cannot connect to the product pod
[student@workstation ~]$
I do not undestend the grade procedure. Taking in account first issue looks that something is not stable ( not correct ) in grading script
You could raise a request to the RH support to address the issue.
Perhaps there could be some misbehaviours of the grading script.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.