2025-07-01 11:32:19,810 - INFO - Domain Default found not creating
2025-07-01 11:32:19,956 - INFO - Project ctest-TestBasicPolicy-40245341 not found, creating it
2025-07-01 11:32:20,447 - INFO - Created Project:ctest-TestBasicPolicy-40245341, ID : ca96a51f-56be-4549-8436-5ba0dd27f4b0
2025-07-01 11:32:21,885 - INFO - ================================================================================
2025-07-01 11:32:21,885 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-01 11:32:21,885 - 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-07-01 11:32:22,150 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-07-01 11:32:22,150 - INFO - Initial checks done. Running the testcase now
2025-07-01 11:32:22,150 - INFO -
2025-07-01 11:32:22,735 - DEBUG - Response for create_network : {'network': {'id': '5d0af249-ad4c-48ea-a9f9-f98d647255c6', 'name': 'ctest-vn-41836611', 'tenant_id': 'ca96a51f56be454984365ba0dd27f4b0', 'project_id': 'ca96a51f56be454984365ba0dd27f4b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40245341', 'ctest-vn-41836611'], 'port_security_enabled': True, 'description': ''}}
2025-07-01 11:32:22,897 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c29e4126-9f08-4de5-a124-8488a02d6456', 'name': '', 'tenant_id': 'ca96a51f56be454984365ba0dd27f4b0', 'network_id': '5d0af249-ad4c-48ea-a9f9-f98d647255c6', 'ip_version': 4, 'cidr': '75.219.56.0/26', 'allocation_pools': [{'start': '75.219.56.2', 'end': '75.219.56.62'}], 'gateway_ip': '75.219.56.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.219.56.2', 'tags': [], 'project_id': 'ca96a51f56be454984365ba0dd27f4b0'}}
2025-07-01 11:32:22,917 - INFO - Created VN ctest-vn-41836611
2025-07-01 11:32:22,971 - DEBUG - VN ctest-vn-41836611 UUID is 5d0af249-ad4c-48ea-a9f9-f98d647255c6
2025-07-01 11:32:23,273 - DEBUG - Response for create_network : {'network': {'id': 'c3a8438d-7b3f-4f0f-b7dd-c945c07f2322', 'name': 'ctest-vn-47788928', 'tenant_id': 'ca96a51f56be454984365ba0dd27f4b0', 'project_id': 'ca96a51f56be454984365ba0dd27f4b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40245341', 'ctest-vn-47788928'], 'port_security_enabled': True, 'description': ''}}
2025-07-01 11:32:23,472 - DEBUG - Response for create_subnet : {'subnet': {'id': '3cb2d8b7-e1d5-44d5-be57-396c15319b38', 'name': '', 'tenant_id': 'ca96a51f56be454984365ba0dd27f4b0', 'network_id': 'c3a8438d-7b3f-4f0f-b7dd-c945c07f2322', 'ip_version': 4, 'cidr': '200.254.162.128/26', 'allocation_pools': [{'start': '200.254.162.130', 'end': '200.254.162.190'}], 'gateway_ip': '200.254.162.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.254.162.130', 'tags': [], 'project_id': 'ca96a51f56be454984365ba0dd27f4b0'}}
2025-07-01 11:32:23,492 - INFO - Created VN ctest-vn-47788928
2025-07-01 11:32:23,547 - DEBUG - VN ctest-vn-47788928 UUID is c3a8438d-7b3f-4f0f-b7dd-c945c07f2322
2025-07-01 11:32:23,663 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40245341:ctest-vn-41836611, 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-40245341:ctest-vn-47788928, 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-07-01 11:32:23,984 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5d0af249-ad4c-48ea-a9f9-f98d647255c6', 'name': 'ctest-vn-41836611', 'tenant_id': 'ca96a51f56be454984365ba0dd27f4b0', 'project_id': 'ca96a51f56be454984365ba0dd27f4b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c29e4126-9f08-4de5-a124-8488a02d6456'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40245341', 'ctest-vn-41836611'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40245341', 'ctest-policy-allow-all-01238230']], 'subnet_ipam': [{'subnet_cidr': '75.219.56.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-01 11:32:24,226 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c3a8438d-7b3f-4f0f-b7dd-c945c07f2322', 'name': 'ctest-vn-47788928', 'tenant_id': 'ca96a51f56be454984365ba0dd27f4b0', 'project_id': 'ca96a51f56be454984365ba0dd27f4b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3cb2d8b7-e1d5-44d5-be57-396c15319b38'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40245341', 'ctest-vn-47788928'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40245341', 'ctest-policy-allow-all-01238230']], 'subnet_ipam': [{'subnet_cidr': '200.254.162.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-01 11:32:24,375 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-01 11:32:24,679 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-01 11:32:24,713 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0a71824d-a08d-4a0d-846e-b07c075e0bdf
2025-07-01 11:32:24,729 - DEBUG - Requesting: http://10.0.0.254:8082/project/ca96a51f-56be-4549-8436-5ba0dd27f4b0
2025-07-01 11:32:24,810 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5d0af249-ad4c-48ea-a9f9-f98d647255c6
2025-07-01 11:32:24,821 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5d0af249-ad4c-48ea-a9f9-f98d647255c6
2025-07-01 11:32:24,832 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/863563b4-8ae6-4239-b196-b0fd570cb3c3
2025-07-01 11:32:24,841 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/863563b4-8ae6-4239-b196-b0fd570cb3c3
2025-07-01 11:32:24,849 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f4872ffb-3fb6-4b6b-9360-7841507bf948
2025-07-01 11:32:24,857 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-01 11:32:24,857 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5d0af249-ad4c-48ea-a9f9-f98d647255c6
2025-07-01 11:32:24,866 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/863563b4-8ae6-4239-b196-b0fd570cb3c3
2025-07-01 11:32:24,881 - INFO - Verified VN network id 8 for VN 5d0af249-ad4c-48ea-a9f9-f98d647255c6
2025-07-01 11:32:24,882 - INFO - Verifications in API Server for VN ctest-vn-41836611 passed
2025-07-01 11:32:24,882 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5d0af249-ad4c-48ea-a9f9-f98d647255c6
2025-07-01 11:32:24,892 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/863563b4-8ae6-4239-b196-b0fd570cb3c3
2025-07-01 11:32:24,899 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/863563b4-8ae6-4239-b196-b0fd570cb3c3
2025-07-01 11:32:24,907 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f4872ffb-3fb6-4b6b-9360-7841507bf948
2025-07-01 11:32:24,920 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40245341:ctest-vn-41836611', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40245341', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6704437393548396778', 'uuid-lslong': '12248095047281694150'}, 'enable': 'true', 'created': '2025-07-01T11:32:22', 'last-modified': '2025-07-01T11:32:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.963778'}
2025-07-01 11:32:24,926 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-01 11:32:24,927 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41836611 passed
2025-07-01 11:32:24,927 - DEBUG - ====Verifying policy data for ctest-vn-41836611 in API_Server ======
2025-07-01 11:32:24,927 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-01 11:32:24,933 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0a71824d-a08d-4a0d-846e-b07c075e0bdf
2025-07-01 11:32:24,948 - DEBUG - Requesting: http://10.0.0.254:8082/project/ca96a51f-56be-4549-8436-5ba0dd27f4b0
2025-07-01 11:32:25,033 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5d0af249-ad4c-48ea-a9f9-f98d647255c6
2025-07-01 11:32:25,043 - DEBUG - ==>Verifying data for policy with id: 0ac18491-a64b-4f86-a5e7-b3df2e303e80, fqn: ['default-domain', 'ctest-TestBasicPolicy-40245341', 'ctest-policy-allow-all-01238230']
2025-07-01 11:32:25,043 - INFO - VN ctest-vn-41836611 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-01 11:32:25,043 - DEBUG - Verifying the vn in opserver
2025-07-01 11:32:25,043 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40245341:ctest-vn-41836611 virtual network link through opserver 10.0.0.254
2025-07-01 11:32:25,043 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-01 11:32:25,339 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-01 11:32:25,395 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40245341:ctest-vn-41836611', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40245341:ctest-vn-41836611?flat'}
2025-07-01 11:32:25,395 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40245341:ctest-vn-41836611 is found in opserver
2025-07-01 11:32:25,406 - DEBUG - Do not have enough data to verify VN in agent
2025-07-01 11:32:25,411 - DEBUG - VRF ids for VN ctest-vn-41836611: {}
2025-07-01 11:32:25,411 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-01 11:32:25,417 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0a71824d-a08d-4a0d-846e-b07c075e0bdf
2025-07-01 11:32:25,430 - DEBUG - Requesting: http://10.0.0.254:8082/project/ca96a51f-56be-4549-8436-5ba0dd27f4b0
2025-07-01 11:32:25,503 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c3a8438d-7b3f-4f0f-b7dd-c945c07f2322
2025-07-01 11:32:25,518 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c3a8438d-7b3f-4f0f-b7dd-c945c07f2322
2025-07-01 11:32:25,530 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/847c297f-d011-45fa-9bad-1885166d3c3a
2025-07-01 11:32:25,539 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/847c297f-d011-45fa-9bad-1885166d3c3a
2025-07-01 11:32:25,548 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8fdfd4fc-e54e-45ba-95e8-5a093f8dd768
2025-07-01 11:32:25,556 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-01 11:32:25,556 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c3a8438d-7b3f-4f0f-b7dd-c945c07f2322
2025-07-01 11:32:25,569 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/847c297f-d011-45fa-9bad-1885166d3c3a
2025-07-01 11:32:25,586 - INFO - Verified VN network id 9 for VN c3a8438d-7b3f-4f0f-b7dd-c945c07f2322
2025-07-01 11:32:25,586 - INFO - Verifications in API Server for VN ctest-vn-47788928 passed
2025-07-01 11:32:25,586 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c3a8438d-7b3f-4f0f-b7dd-c945c07f2322
2025-07-01 11:32:25,598 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/847c297f-d011-45fa-9bad-1885166d3c3a
2025-07-01 11:32:25,607 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/847c297f-d011-45fa-9bad-1885166d3c3a
2025-07-01 11:32:25,616 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8fdfd4fc-e54e-45ba-95e8-5a093f8dd768
2025-07-01 11:32:25,628 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40245341:ctest-vn-47788928', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40245341', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14098592908420534031', 'uuid-lslong': '13248966980213351202'}, 'enable': 'true', 'created': '2025-07-01T11:32:23', 'last-modified': '2025-07-01T11:32:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.428721'}
2025-07-01 11:32:25,636 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-01 11:32:25,636 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47788928 passed
2025-07-01 11:32:25,636 - DEBUG - ====Verifying policy data for ctest-vn-47788928 in API_Server ======
2025-07-01 11:32:25,636 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-01 11:32:25,642 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0a71824d-a08d-4a0d-846e-b07c075e0bdf
2025-07-01 11:32:25,657 - DEBUG - Requesting: http://10.0.0.254:8082/project/ca96a51f-56be-4549-8436-5ba0dd27f4b0
2025-07-01 11:32:25,738 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c3a8438d-7b3f-4f0f-b7dd-c945c07f2322
2025-07-01 11:32:25,748 - DEBUG - ==>Verifying data for policy with id: 0ac18491-a64b-4f86-a5e7-b3df2e303e80, fqn: ['default-domain', 'ctest-TestBasicPolicy-40245341', 'ctest-policy-allow-all-01238230']
2025-07-01 11:32:25,748 - INFO - VN ctest-vn-47788928 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-01 11:32:25,748 - DEBUG - Verifying the vn in opserver
2025-07-01 11:32:25,748 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40245341:ctest-vn-47788928 virtual network link through opserver 10.0.0.254
2025-07-01 11:32:25,748 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-01 11:32:25,768 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40245341:ctest-vn-47788928', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40245341:ctest-vn-47788928?flat'}
2025-07-01 11:32:25,768 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40245341:ctest-vn-47788928 is found in opserver
2025-07-01 11:32:25,782 - DEBUG - Do not have enough data to verify VN in agent
2025-07-01 11:32:25,788 - DEBUG - VRF ids for VN ctest-vn-47788928: {}
2025-07-01 11:32:25,861 - DEBUG - Services list from nova: [