2025-02-11 22:10:36,658 - INFO - Domain Default found not creating
2025-02-11 22:10:36,836 - INFO - Project ctest-TestBasicPolicy-75635668 not found, creating it
2025-02-11 22:10:37,318 - INFO - Created Project:ctest-TestBasicPolicy-75635668, ID : 08336013-b998-4a7b-937e-aff551d310e0
2025-02-11 22:10:38,975 - INFO - ================================================================================
2025-02-11 22:10:38,975 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-11 22:10:38,975 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-02-11 22:10:39,233 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.7': '0'}} with
2025-02-11 22:10:39,233 - INFO - Initial checks done. Running the testcase now
2025-02-11 22:10:39,233 - INFO -
2025-02-11 22:10:39,838 - DEBUG - Response for create_network : {'network': {'id': '89549dc6-fef0-4623-bd9b-9f797506af16', 'name': 'ctest-vn-58689379', 'tenant_id': '08336013b9984a7b937eaff551d310e0', 'project_id': '08336013b9984a7b937eaff551d310e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75635668', 'ctest-vn-58689379'], 'port_security_enabled': True, 'description': ''}}
2025-02-11 22:10:40,046 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf68fe83-386c-4f88-ab46-28de0e5f8481', 'name': '', 'tenant_id': '08336013b9984a7b937eaff551d310e0', 'network_id': '89549dc6-fef0-4623-bd9b-9f797506af16', 'ip_version': 4, 'cidr': '51.88.33.192/26', 'allocation_pools': [{'start': '51.88.33.194', 'end': '51.88.33.254'}], 'gateway_ip': '51.88.33.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.88.33.194', 'tags': [], 'project_id': '08336013b9984a7b937eaff551d310e0'}}
2025-02-11 22:10:40,067 - INFO - Created VN ctest-vn-58689379
2025-02-11 22:10:40,122 - DEBUG - VN ctest-vn-58689379 UUID is 89549dc6-fef0-4623-bd9b-9f797506af16
2025-02-11 22:10:40,445 - DEBUG - Response for create_network : {'network': {'id': '2ec80886-45d1-41eb-9eba-e675b679c0d6', 'name': 'ctest-vn-46205302', 'tenant_id': '08336013b9984a7b937eaff551d310e0', 'project_id': '08336013b9984a7b937eaff551d310e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75635668', 'ctest-vn-46205302'], 'port_security_enabled': True, 'description': ''}}
2025-02-11 22:10:40,625 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cde3b987-669d-4c2e-a18a-997d03d3b292', 'name': '', 'tenant_id': '08336013b9984a7b937eaff551d310e0', 'network_id': '2ec80886-45d1-41eb-9eba-e675b679c0d6', 'ip_version': 4, 'cidr': '200.187.229.128/26', 'allocation_pools': [{'start': '200.187.229.130', 'end': '200.187.229.190'}], 'gateway_ip': '200.187.229.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.187.229.130', 'tags': [], 'project_id': '08336013b9984a7b937eaff551d310e0'}}
2025-02-11 22:10:40,643 - INFO - Created VN ctest-vn-46205302
2025-02-11 22:10:40,698 - DEBUG - VN ctest-vn-46205302 UUID is 2ec80886-45d1-41eb-9eba-e675b679c0d6
2025-02-11 22:10:40,816 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75635668:ctest-vn-58689379, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75635668:ctest-vn-46205302, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-02-11 22:10:41,123 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '89549dc6-fef0-4623-bd9b-9f797506af16', 'name': 'ctest-vn-58689379', 'tenant_id': '08336013b9984a7b937eaff551d310e0', 'project_id': '08336013b9984a7b937eaff551d310e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cf68fe83-386c-4f88-ab46-28de0e5f8481'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75635668', 'ctest-vn-58689379'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75635668', 'ctest-policy-allow-all-07623648']], 'subnet_ipam': [{'subnet_cidr': '51.88.33.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-11 22:10:41,377 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ec80886-45d1-41eb-9eba-e675b679c0d6', 'name': 'ctest-vn-46205302', 'tenant_id': '08336013b9984a7b937eaff551d310e0', 'project_id': '08336013b9984a7b937eaff551d310e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cde3b987-669d-4c2e-a18a-997d03d3b292'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75635668', 'ctest-vn-46205302'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75635668', 'ctest-policy-allow-all-07623648']], 'subnet_ipam': [{'subnet_cidr': '200.187.229.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-11 22:10:41,554 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-11 22:10:41,897 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-11 22:10:41,929 - DEBUG - Requesting: http://10.0.0.24:8082/domain/27fe7fef-a657-4d41-8bd5-ba7e3ec22033
2025-02-11 22:10:41,946 - DEBUG - Requesting: http://10.0.0.24:8082/project/08336013-b998-4a7b-937e-aff551d310e0
2025-02-11 22:10:42,026 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/89549dc6-fef0-4623-bd9b-9f797506af16
2025-02-11 22:10:42,040 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/89549dc6-fef0-4623-bd9b-9f797506af16
2025-02-11 22:10:42,052 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f031b111-981a-4d6f-8104-c80448c11e25
2025-02-11 22:10:42,061 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f031b111-981a-4d6f-8104-c80448c11e25
2025-02-11 22:10:42,069 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/3196c95b-aa96-4c7b-b764-eed76284eaeb
2025-02-11 22:10:42,077 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-11 22:10:42,077 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/89549dc6-fef0-4623-bd9b-9f797506af16
2025-02-11 22:10:42,088 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f031b111-981a-4d6f-8104-c80448c11e25
2025-02-11 22:10:42,104 - INFO - Verified VN network id 8 for VN 89549dc6-fef0-4623-bd9b-9f797506af16
2025-02-11 22:10:42,105 - INFO - Verifications in API Server for VN ctest-vn-58689379 passed
2025-02-11 22:10:42,105 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/89549dc6-fef0-4623-bd9b-9f797506af16
2025-02-11 22:10:42,116 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f031b111-981a-4d6f-8104-c80448c11e25
2025-02-11 22:10:42,126 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f031b111-981a-4d6f-8104-c80448c11e25
2025-02-11 22:10:42,135 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/3196c95b-aa96-4c7b-b764-eed76284eaeb
2025-02-11 22:10:42,149 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75635668:ctest-vn-58689379', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75635668', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9895707759246067235', 'uuid-lslong': '13662689238561763094'}, 'enable': 'true', 'created': '2025-02-11T22:10:39', 'last-modified': '2025-02-11T22:10:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.059605'}
2025-02-11 22:10:42,156 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-11 22:10:42,156 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58689379 passed
2025-02-11 22:10:42,156 - DEBUG - ====Verifying policy data for ctest-vn-58689379 in API_Server ======
2025-02-11 22:10:42,157 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-11 22:10:42,163 - DEBUG - Requesting: http://10.0.0.24:8082/domain/27fe7fef-a657-4d41-8bd5-ba7e3ec22033
2025-02-11 22:10:42,176 - DEBUG - Requesting: http://10.0.0.24:8082/project/08336013-b998-4a7b-937e-aff551d310e0
2025-02-11 22:10:42,256 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/89549dc6-fef0-4623-bd9b-9f797506af16
2025-02-11 22:10:42,267 - DEBUG - ==>Verifying data for policy with id: 9b61e896-18a3-4656-b312-ecb679ee5f17, fqn: ['default-domain', 'ctest-TestBasicPolicy-75635668', 'ctest-policy-allow-all-07623648']
2025-02-11 22:10:42,267 - INFO - VN ctest-vn-58689379 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-11 22:10:42,267 - DEBUG - Verifying the vn in opserver
2025-02-11 22:10:42,267 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75635668:ctest-vn-58689379 virtual network link through opserver 10.0.0.24
2025-02-11 22:10:42,267 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-11 22:10:42,600 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-11 22:10:42,657 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75635668:ctest-vn-58689379', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75635668:ctest-vn-58689379?flat'}
2025-02-11 22:10:42,657 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75635668:ctest-vn-58689379 is found in opserver
2025-02-11 22:10:42,670 - DEBUG - Do not have enough data to verify VN in agent
2025-02-11 22:10:42,676 - DEBUG - VRF ids for VN ctest-vn-58689379: {}
2025-02-11 22:10:42,676 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-11 22:10:42,683 - DEBUG - Requesting: http://10.0.0.24:8082/domain/27fe7fef-a657-4d41-8bd5-ba7e3ec22033
2025-02-11 22:10:42,696 - DEBUG - Requesting: http://10.0.0.24:8082/project/08336013-b998-4a7b-937e-aff551d310e0
2025-02-11 22:10:42,777 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2ec80886-45d1-41eb-9eba-e675b679c0d6
2025-02-11 22:10:42,791 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2ec80886-45d1-41eb-9eba-e675b679c0d6
2025-02-11 22:10:42,802 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/073c9022-7ce1-4219-87f5-a9ba9fd1fc54
2025-02-11 22:10:42,810 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/073c9022-7ce1-4219-87f5-a9ba9fd1fc54
2025-02-11 22:10:42,817 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/0eb91e23-0acd-4fb5-aa7e-2400d7c619f1
2025-02-11 22:10:42,825 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-11 22:10:42,825 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2ec80886-45d1-41eb-9eba-e675b679c0d6
2025-02-11 22:10:42,837 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/073c9022-7ce1-4219-87f5-a9ba9fd1fc54
2025-02-11 22:10:42,855 - INFO - Verified VN network id 9 for VN 2ec80886-45d1-41eb-9eba-e675b679c0d6
2025-02-11 22:10:42,855 - INFO - Verifications in API Server for VN ctest-vn-46205302 passed
2025-02-11 22:10:42,855 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2ec80886-45d1-41eb-9eba-e675b679c0d6
2025-02-11 22:10:42,866 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/073c9022-7ce1-4219-87f5-a9ba9fd1fc54
2025-02-11 22:10:42,874 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/073c9022-7ce1-4219-87f5-a9ba9fd1fc54
2025-02-11 22:10:42,883 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/0eb91e23-0acd-4fb5-aa7e-2400d7c619f1
2025-02-11 22:10:42,899 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75635668:ctest-vn-46205302', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75635668', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3370953693876797931', 'uuid-lslong': '11437707596907790550'}, 'enable': 'true', 'created': '2025-02-11T22:10:40', 'last-modified': '2025-02-11T22:10:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.556155'}
2025-02-11 22:10:42,905 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-11 22:10:42,906 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46205302 passed
2025-02-11 22:10:42,906 - DEBUG - ====Verifying policy data for ctest-vn-46205302 in API_Server ======
2025-02-11 22:10:42,906 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-11 22:10:42,912 - DEBUG - Requesting: http://10.0.0.24:8082/domain/27fe7fef-a657-4d41-8bd5-ba7e3ec22033
2025-02-11 22:10:42,924 - DEBUG - Requesting: http://10.0.0.24:8082/project/08336013-b998-4a7b-937e-aff551d310e0
2025-02-11 22:10:43,000 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2ec80886-45d1-41eb-9eba-e675b679c0d6
2025-02-11 22:10:43,012 - DEBUG - ==>Verifying data for policy with id: 9b61e896-18a3-4656-b312-ecb679ee5f17, fqn: ['default-domain', 'ctest-TestBasicPolicy-75635668', 'ctest-policy-allow-all-07623648']
2025-02-11 22:10:43,012 - INFO - VN ctest-vn-46205302 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-11 22:10:43,012 - DEBUG - Verifying the vn in opserver
2025-02-11 22:10:43,012 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75635668:ctest-vn-46205302 virtual network link through opserver 10.0.0.24
2025-02-11 22:10:43,012 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-11 22:10:43,024 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75635668:ctest-vn-46205302', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75635668:ctest-vn-46205302?flat'}
2025-02-11 22:10:43,024 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75635668:ctest-vn-46205302 is found in opserver
2025-02-11 22:10:43,038 - DEBUG - Do not have enough data to verify VN in agent
2025-02-11 22:10:43,043 - DEBUG - VRF ids for VN ctest-vn-46205302: {}
2025-02-11 22:10:43,102 - DEBUG - Services list from nova: [