2025-08-26 00:08:23,016 - INFO - Domain Default found not creating
2025-08-26 00:08:23,172 - INFO - Project ctest-TestBasicPolicy-98841381 not found, creating it
2025-08-26 00:08:23,671 - INFO - Created Project:ctest-TestBasicPolicy-98841381, ID : 7b946d5b-8dd8-4542-9924-68c196a19f48
2025-08-26 00:08:25,170 - INFO - ================================================================================
2025-08-26 00:08:25,171 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-26 00:08:25,171 - 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-08-26 00:08:25,441 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.192': '0'}} with
2025-08-26 00:08:25,441 - INFO - Initial checks done. Running the testcase now
2025-08-26 00:08:25,441 - INFO -
2025-08-26 00:08:26,070 - DEBUG - Response for create_network : {'network': {'id': '874c2ba0-5b0f-41c5-8aa0-06dfdf430eea', 'name': 'ctest-vn-70681100', 'tenant_id': '7b946d5b8dd84542992468c196a19f48', 'project_id': '7b946d5b8dd84542992468c196a19f48', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98841381', 'ctest-vn-70681100'], 'port_security_enabled': True, 'description': ''}}
2025-08-26 00:08:26,275 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cbbf8bee-c297-4140-bafe-b42d3cc63fa4', 'name': '', 'tenant_id': '7b946d5b8dd84542992468c196a19f48', 'network_id': '874c2ba0-5b0f-41c5-8aa0-06dfdf430eea', 'ip_version': 4, 'cidr': '174.52.10.0/26', 'allocation_pools': [{'start': '174.52.10.2', 'end': '174.52.10.62'}], 'gateway_ip': '174.52.10.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.52.10.2', 'tags': [], 'project_id': '7b946d5b8dd84542992468c196a19f48'}}
2025-08-26 00:08:26,293 - INFO - Created VN ctest-vn-70681100
2025-08-26 00:08:26,345 - DEBUG - VN ctest-vn-70681100 UUID is 874c2ba0-5b0f-41c5-8aa0-06dfdf430eea
2025-08-26 00:08:26,641 - DEBUG - Response for create_network : {'network': {'id': '9516af6c-6515-425b-a01b-007966574b5e', 'name': 'ctest-vn-04741216', 'tenant_id': '7b946d5b8dd84542992468c196a19f48', 'project_id': '7b946d5b8dd84542992468c196a19f48', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98841381', 'ctest-vn-04741216'], 'port_security_enabled': True, 'description': ''}}
2025-08-26 00:08:26,810 - DEBUG - Response for create_subnet : {'subnet': {'id': '2377bed3-a5ff-4dc5-9c8d-b5df7985c3e1', 'name': '', 'tenant_id': '7b946d5b8dd84542992468c196a19f48', 'network_id': '9516af6c-6515-425b-a01b-007966574b5e', 'ip_version': 4, 'cidr': '216.76.234.192/26', 'allocation_pools': [{'start': '216.76.234.194', 'end': '216.76.234.254'}], 'gateway_ip': '216.76.234.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.76.234.194', 'tags': [], 'project_id': '7b946d5b8dd84542992468c196a19f48'}}
2025-08-26 00:08:26,828 - INFO - Created VN ctest-vn-04741216
2025-08-26 00:08:26,881 - DEBUG - VN ctest-vn-04741216 UUID is 9516af6c-6515-425b-a01b-007966574b5e
2025-08-26 00:08:27,005 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98841381:ctest-vn-70681100, 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-98841381:ctest-vn-04741216, 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-08-26 00:08:27,311 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '874c2ba0-5b0f-41c5-8aa0-06dfdf430eea', 'name': 'ctest-vn-70681100', 'tenant_id': '7b946d5b8dd84542992468c196a19f48', 'project_id': '7b946d5b8dd84542992468c196a19f48', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cbbf8bee-c297-4140-bafe-b42d3cc63fa4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98841381', 'ctest-vn-70681100'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98841381', 'ctest-policy-allow-all-87101186']], 'subnet_ipam': [{'subnet_cidr': '174.52.10.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-26 00:08:27,614 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9516af6c-6515-425b-a01b-007966574b5e', 'name': 'ctest-vn-04741216', 'tenant_id': '7b946d5b8dd84542992468c196a19f48', 'project_id': '7b946d5b8dd84542992468c196a19f48', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2377bed3-a5ff-4dc5-9c8d-b5df7985c3e1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98841381', 'ctest-vn-04741216'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98841381', 'ctest-policy-allow-all-87101186']], 'subnet_ipam': [{'subnet_cidr': '216.76.234.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-26 00:08:27,777 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-08-26 00:08:28,087 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-08-26 00:08:28,121 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4ef1fae8-73cb-4d23-a633-7ef3c9f6dfd7
2025-08-26 00:08:28,140 - DEBUG - Requesting: http://10.0.0.141:8082/project/7b946d5b-8dd8-4542-9924-68c196a19f48
2025-08-26 00:08:28,216 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/874c2ba0-5b0f-41c5-8aa0-06dfdf430eea
2025-08-26 00:08:28,229 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/874c2ba0-5b0f-41c5-8aa0-06dfdf430eea
2025-08-26 00:08:28,238 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/73649393-4da0-497b-b547-65b753c8044a
2025-08-26 00:08:28,245 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/73649393-4da0-497b-b547-65b753c8044a
2025-08-26 00:08:28,252 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/7cbde900-3692-4b83-8735-30fc8878fed1
2025-08-26 00:08:28,257 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-26 00:08:28,258 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/874c2ba0-5b0f-41c5-8aa0-06dfdf430eea
2025-08-26 00:08:28,266 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/73649393-4da0-497b-b547-65b753c8044a
2025-08-26 00:08:28,279 - INFO - Verified VN network id 12 for VN 874c2ba0-5b0f-41c5-8aa0-06dfdf430eea
2025-08-26 00:08:28,279 - INFO - Verifications in API Server for VN ctest-vn-70681100 passed
2025-08-26 00:08:28,279 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/874c2ba0-5b0f-41c5-8aa0-06dfdf430eea
2025-08-26 00:08:28,289 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/73649393-4da0-497b-b547-65b753c8044a
2025-08-26 00:08:28,296 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/73649393-4da0-497b-b547-65b753c8044a
2025-08-26 00:08:28,302 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/7cbde900-3692-4b83-8735-30fc8878fed1
2025-08-26 00:08:28,316 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98841381:ctest-vn-70681100', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98841381', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9749215261072769477', 'uuid-lslong': '9988991532100947690'}, 'enable': 'true', 'created': '2025-08-26T00:08:26', 'last-modified': '2025-08-26T00:08:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.029591'}
2025-08-26 00:08:28,324 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-26 00:08:28,324 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70681100 passed
2025-08-26 00:08:28,324 - DEBUG - ====Verifying policy data for ctest-vn-70681100 in API_Server ======
2025-08-26 00:08:28,324 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-08-26 00:08:28,331 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4ef1fae8-73cb-4d23-a633-7ef3c9f6dfd7
2025-08-26 00:08:28,342 - DEBUG - Requesting: http://10.0.0.141:8082/project/7b946d5b-8dd8-4542-9924-68c196a19f48
2025-08-26 00:08:28,413 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/874c2ba0-5b0f-41c5-8aa0-06dfdf430eea
2025-08-26 00:08:28,423 - DEBUG - ==>Verifying data for policy with id: 2294eca3-32f2-4cf9-9888-0ee4f3b928bd, fqn: ['default-domain', 'ctest-TestBasicPolicy-98841381', 'ctest-policy-allow-all-87101186']
2025-08-26 00:08:28,423 - INFO - VN ctest-vn-70681100 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-26 00:08:28,424 - DEBUG - Verifying the vn in opserver
2025-08-26 00:08:28,424 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98841381:ctest-vn-70681100 virtual network link through opserver 10.0.0.141
2025-08-26 00:08:28,424 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-08-26 00:08:28,721 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-08-26 00:08:28,779 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98841381:ctest-vn-70681100', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98841381:ctest-vn-70681100?flat'}
2025-08-26 00:08:28,779 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98841381:ctest-vn-70681100 is found in opserver
2025-08-26 00:08:28,791 - DEBUG - Do not have enough data to verify VN in agent
2025-08-26 00:08:28,796 - DEBUG - VRF ids for VN ctest-vn-70681100: {}
2025-08-26 00:08:28,796 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-08-26 00:08:28,802 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4ef1fae8-73cb-4d23-a633-7ef3c9f6dfd7
2025-08-26 00:08:28,814 - DEBUG - Requesting: http://10.0.0.141:8082/project/7b946d5b-8dd8-4542-9924-68c196a19f48
2025-08-26 00:08:28,896 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9516af6c-6515-425b-a01b-007966574b5e
2025-08-26 00:08:28,912 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9516af6c-6515-425b-a01b-007966574b5e
2025-08-26 00:08:28,922 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0643f4be-b5d1-4c9c-a6ac-30f2a4e39af2
2025-08-26 00:08:28,929 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0643f4be-b5d1-4c9c-a6ac-30f2a4e39af2
2025-08-26 00:08:28,936 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/1c7fd3c7-5fdd-4853-a9f3-9836c013a6e5
2025-08-26 00:08:28,942 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-26 00:08:28,943 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9516af6c-6515-425b-a01b-007966574b5e
2025-08-26 00:08:28,952 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0643f4be-b5d1-4c9c-a6ac-30f2a4e39af2
2025-08-26 00:08:28,965 - INFO - Verified VN network id 13 for VN 9516af6c-6515-425b-a01b-007966574b5e
2025-08-26 00:08:28,966 - INFO - Verifications in API Server for VN ctest-vn-04741216 passed
2025-08-26 00:08:28,966 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9516af6c-6515-425b-a01b-007966574b5e
2025-08-26 00:08:28,976 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0643f4be-b5d1-4c9c-a6ac-30f2a4e39af2
2025-08-26 00:08:28,983 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0643f4be-b5d1-4c9c-a6ac-30f2a4e39af2
2025-08-26 00:08:28,993 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/1c7fd3c7-5fdd-4853-a9f3-9836c013a6e5
2025-08-26 00:08:29,010 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98841381:ctest-vn-04741216', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98841381', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10742966841226117723', 'uuid-lslong': '11536815391847697246'}, 'enable': 'true', 'created': '2025-08-26T00:08:26', 'last-modified': '2025-08-26T00:08:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.477202'}
2025-08-26 00:08:29,020 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-26 00:08:29,020 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04741216 passed
2025-08-26 00:08:29,020 - DEBUG - ====Verifying policy data for ctest-vn-04741216 in API_Server ======
2025-08-26 00:08:29,020 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-08-26 00:08:29,026 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4ef1fae8-73cb-4d23-a633-7ef3c9f6dfd7
2025-08-26 00:08:29,040 - DEBUG - Requesting: http://10.0.0.141:8082/project/7b946d5b-8dd8-4542-9924-68c196a19f48
2025-08-26 00:08:29,112 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9516af6c-6515-425b-a01b-007966574b5e
2025-08-26 00:08:29,121 - DEBUG - ==>Verifying data for policy with id: 2294eca3-32f2-4cf9-9888-0ee4f3b928bd, fqn: ['default-domain', 'ctest-TestBasicPolicy-98841381', 'ctest-policy-allow-all-87101186']
2025-08-26 00:08:29,122 - INFO - VN ctest-vn-04741216 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-26 00:08:29,122 - DEBUG - Verifying the vn in opserver
2025-08-26 00:08:29,122 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98841381:ctest-vn-04741216 virtual network link through opserver 10.0.0.141
2025-08-26 00:08:29,122 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-08-26 00:08:29,134 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98841381:ctest-vn-04741216', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98841381:ctest-vn-04741216?flat'}
2025-08-26 00:08:29,134 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98841381:ctest-vn-04741216 is found in opserver
2025-08-26 00:08:29,144 - DEBUG - Do not have enough data to verify VN in agent
2025-08-26 00:08:29,148 - DEBUG - VRF ids for VN ctest-vn-04741216: {}
2025-08-26 00:08:29,203 - DEBUG - Services list from nova: [