2025-10-21 12:01:04,418 - INFO - Domain Default found not creating
2025-10-21 12:01:04,557 - INFO - Project ctest-TestBasicPolicy-36238260 not found, creating it
2025-10-21 12:01:04,985 - INFO - Created Project:ctest-TestBasicPolicy-36238260, ID : 7d2c06c6-a15d-4e09-9bcd-ffa0842312db
2025-10-21 12:01:06,353 - INFO - ================================================================================
2025-10-21 12:01:06,353 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-21 12:01:06,353 - 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-10-21 12:01:06,607 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with
2025-10-21 12:01:06,607 - INFO - Initial checks done. Running the testcase now
2025-10-21 12:01:06,607 - INFO -
2025-10-21 12:01:07,169 - DEBUG - Response for create_network : {'network': {'id': '6bc8da8c-d73f-404b-9a5e-af73640c8d8b', 'name': 'ctest-vn-16696157', 'tenant_id': '7d2c06c6a15d4e099bcdffa0842312db', 'project_id': '7d2c06c6a15d4e099bcdffa0842312db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36238260', 'ctest-vn-16696157'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 12:01:07,352 - DEBUG - Response for create_subnet : {'subnet': {'id': '200caecc-1a06-4608-b0e8-6b76a1eb0625', 'name': '', 'tenant_id': '7d2c06c6a15d4e099bcdffa0842312db', 'network_id': '6bc8da8c-d73f-404b-9a5e-af73640c8d8b', 'ip_version': 4, 'cidr': '35.241.201.64/26', 'allocation_pools': [{'start': '35.241.201.66', 'end': '35.241.201.126'}], 'gateway_ip': '35.241.201.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.241.201.66', 'tags': [], 'project_id': '7d2c06c6a15d4e099bcdffa0842312db'}}
2025-10-21 12:01:07,370 - INFO - Created VN ctest-vn-16696157
2025-10-21 12:01:07,422 - DEBUG - VN ctest-vn-16696157 UUID is 6bc8da8c-d73f-404b-9a5e-af73640c8d8b
2025-10-21 12:01:07,691 - DEBUG - Response for create_network : {'network': {'id': 'e6bb1409-7e54-4370-bb52-bea9c504bf93', 'name': 'ctest-vn-21775347', 'tenant_id': '7d2c06c6a15d4e099bcdffa0842312db', 'project_id': '7d2c06c6a15d4e099bcdffa0842312db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36238260', 'ctest-vn-21775347'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 12:01:07,934 - DEBUG - Response for create_subnet : {'subnet': {'id': '00a21493-33d8-489b-9831-8eb0276c7bda', 'name': '', 'tenant_id': '7d2c06c6a15d4e099bcdffa0842312db', 'network_id': 'e6bb1409-7e54-4370-bb52-bea9c504bf93', 'ip_version': 4, 'cidr': '216.201.248.64/26', 'allocation_pools': [{'start': '216.201.248.66', 'end': '216.201.248.126'}], 'gateway_ip': '216.201.248.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.201.248.66', 'tags': [], 'project_id': '7d2c06c6a15d4e099bcdffa0842312db'}}
2025-10-21 12:01:07,950 - INFO - Created VN ctest-vn-21775347
2025-10-21 12:01:08,002 - DEBUG - VN ctest-vn-21775347 UUID is e6bb1409-7e54-4370-bb52-bea9c504bf93
2025-10-21 12:01:08,150 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36238260:ctest-vn-16696157, 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-36238260:ctest-vn-21775347, 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-10-21 12:01:08,443 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6bc8da8c-d73f-404b-9a5e-af73640c8d8b', 'name': 'ctest-vn-16696157', 'tenant_id': '7d2c06c6a15d4e099bcdffa0842312db', 'project_id': '7d2c06c6a15d4e099bcdffa0842312db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['200caecc-1a06-4608-b0e8-6b76a1eb0625'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36238260', 'ctest-vn-16696157'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36238260', 'ctest-policy-allow-all-20828142']], 'subnet_ipam': [{'subnet_cidr': '35.241.201.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 12:01:08,668 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e6bb1409-7e54-4370-bb52-bea9c504bf93', 'name': 'ctest-vn-21775347', 'tenant_id': '7d2c06c6a15d4e099bcdffa0842312db', 'project_id': '7d2c06c6a15d4e099bcdffa0842312db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['00a21493-33d8-489b-9831-8eb0276c7bda'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36238260', 'ctest-vn-21775347'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36238260', 'ctest-policy-allow-all-20828142']], 'subnet_ipam': [{'subnet_cidr': '216.201.248.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 12:01:08,834 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-21 12:01:09,123 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-21 12:01:09,150 - DEBUG - Requesting: http://10.0.0.242:8082/domain/bbb890d8-4fdf-4a10-92e6-807a6c4b416f
2025-10-21 12:01:09,163 - DEBUG - Requesting: http://10.0.0.242:8082/project/7d2c06c6-a15d-4e09-9bcd-ffa0842312db
2025-10-21 12:01:09,236 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6bc8da8c-d73f-404b-9a5e-af73640c8d8b
2025-10-21 12:01:09,247 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6bc8da8c-d73f-404b-9a5e-af73640c8d8b
2025-10-21 12:01:09,257 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fe11620e-6be2-4883-9da4-ea78a58069ad
2025-10-21 12:01:09,263 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fe11620e-6be2-4883-9da4-ea78a58069ad
2025-10-21 12:01:09,269 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/b26df4fc-8914-4779-b2de-5ffb2fcf856f
2025-10-21 12:01:09,274 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 12:01:09,274 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6bc8da8c-d73f-404b-9a5e-af73640c8d8b
2025-10-21 12:01:09,282 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fe11620e-6be2-4883-9da4-ea78a58069ad
2025-10-21 12:01:09,292 - INFO - Verified VN network id 10 for VN 6bc8da8c-d73f-404b-9a5e-af73640c8d8b
2025-10-21 12:01:09,293 - INFO - Verifications in API Server for VN ctest-vn-16696157 passed
2025-10-21 12:01:09,293 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6bc8da8c-d73f-404b-9a5e-af73640c8d8b
2025-10-21 12:01:09,300 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fe11620e-6be2-4883-9da4-ea78a58069ad
2025-10-21 12:01:09,305 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fe11620e-6be2-4883-9da4-ea78a58069ad
2025-10-21 12:01:09,311 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/b26df4fc-8914-4779-b2de-5ffb2fcf856f
2025-10-21 12:01:09,321 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36238260:ctest-vn-16696157', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36238260', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7766697855841943627', 'uuid-lslong': '11123521039786347915'}, 'enable': 'true', 'created': '2025-10-21T12:01:07', 'last-modified': '2025-10-21T12:01:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.905963'}
2025-10-21 12:01:09,326 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 12:01:09,326 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16696157 passed
2025-10-21 12:01:09,327 - DEBUG - ====Verifying policy data for ctest-vn-16696157 in API_Server ======
2025-10-21 12:01:09,327 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-21 12:01:09,332 - DEBUG - Requesting: http://10.0.0.242:8082/domain/bbb890d8-4fdf-4a10-92e6-807a6c4b416f
2025-10-21 12:01:09,342 - DEBUG - Requesting: http://10.0.0.242:8082/project/7d2c06c6-a15d-4e09-9bcd-ffa0842312db
2025-10-21 12:01:09,427 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6bc8da8c-d73f-404b-9a5e-af73640c8d8b
2025-10-21 12:01:09,436 - DEBUG - ==>Verifying data for policy with id: 159210f7-04fe-45dd-ba2e-5dbe0d975387, fqn: ['default-domain', 'ctest-TestBasicPolicy-36238260', 'ctest-policy-allow-all-20828142']
2025-10-21 12:01:09,437 - INFO - VN ctest-vn-16696157 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 12:01:09,437 - DEBUG - Verifying the vn in opserver
2025-10-21 12:01:09,437 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36238260:ctest-vn-16696157 virtual network link through opserver 10.0.0.242
2025-10-21 12:01:09,437 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-21 12:01:09,729 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-21 12:01:09,783 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36238260:ctest-vn-16696157', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36238260:ctest-vn-16696157?flat'}
2025-10-21 12:01:09,783 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36238260:ctest-vn-16696157 is found in opserver
2025-10-21 12:01:09,791 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 12:01:09,795 - DEBUG - VRF ids for VN ctest-vn-16696157: {}
2025-10-21 12:01:09,795 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-21 12:01:09,799 - DEBUG - Requesting: http://10.0.0.242:8082/domain/bbb890d8-4fdf-4a10-92e6-807a6c4b416f
2025-10-21 12:01:09,809 - DEBUG - Requesting: http://10.0.0.242:8082/project/7d2c06c6-a15d-4e09-9bcd-ffa0842312db
2025-10-21 12:01:09,878 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e6bb1409-7e54-4370-bb52-bea9c504bf93
2025-10-21 12:01:09,888 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e6bb1409-7e54-4370-bb52-bea9c504bf93
2025-10-21 12:01:09,897 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5422af7f-183f-42ac-a925-c970457344c7
2025-10-21 12:01:09,903 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5422af7f-183f-42ac-a925-c970457344c7
2025-10-21 12:01:09,909 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/578ffa2f-50bc-4414-b45a-aacc56dd6508
2025-10-21 12:01:09,915 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 12:01:09,916 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e6bb1409-7e54-4370-bb52-bea9c504bf93
2025-10-21 12:01:09,925 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5422af7f-183f-42ac-a925-c970457344c7
2025-10-21 12:01:09,939 - INFO - Verified VN network id 11 for VN e6bb1409-7e54-4370-bb52-bea9c504bf93
2025-10-21 12:01:09,939 - INFO - Verifications in API Server for VN ctest-vn-21775347 passed
2025-10-21 12:01:09,939 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e6bb1409-7e54-4370-bb52-bea9c504bf93
2025-10-21 12:01:09,948 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5422af7f-183f-42ac-a925-c970457344c7
2025-10-21 12:01:09,957 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5422af7f-183f-42ac-a925-c970457344c7
2025-10-21 12:01:09,963 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/578ffa2f-50bc-4414-b45a-aacc56dd6508
2025-10-21 12:01:09,974 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36238260:ctest-vn-21775347', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36238260', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16625904480375030640', 'uuid-lslong': '13498060669546971027'}, 'enable': 'true', 'created': '2025-10-21T12:01:07', 'last-modified': '2025-10-21T12:01:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.323948'}
2025-10-21 12:01:09,979 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 12:01:09,979 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21775347 passed
2025-10-21 12:01:09,979 - DEBUG - ====Verifying policy data for ctest-vn-21775347 in API_Server ======
2025-10-21 12:01:09,979 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-21 12:01:09,986 - DEBUG - Requesting: http://10.0.0.242:8082/domain/bbb890d8-4fdf-4a10-92e6-807a6c4b416f
2025-10-21 12:01:09,996 - DEBUG - Requesting: http://10.0.0.242:8082/project/7d2c06c6-a15d-4e09-9bcd-ffa0842312db
2025-10-21 12:01:10,066 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e6bb1409-7e54-4370-bb52-bea9c504bf93
2025-10-21 12:01:10,074 - DEBUG - ==>Verifying data for policy with id: 159210f7-04fe-45dd-ba2e-5dbe0d975387, fqn: ['default-domain', 'ctest-TestBasicPolicy-36238260', 'ctest-policy-allow-all-20828142']
2025-10-21 12:01:10,074 - INFO - VN ctest-vn-21775347 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 12:01:10,074 - DEBUG - Verifying the vn in opserver
2025-10-21 12:01:10,074 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36238260:ctest-vn-21775347 virtual network link through opserver 10.0.0.242
2025-10-21 12:01:10,074 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-21 12:01:10,083 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36238260:ctest-vn-21775347', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36238260:ctest-vn-21775347?flat'}
2025-10-21 12:01:10,083 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36238260:ctest-vn-21775347 is found in opserver
2025-10-21 12:01:10,093 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 12:01:10,097 - DEBUG - VRF ids for VN ctest-vn-21775347: {}
2025-10-21 12:01:10,155 - DEBUG - Services list from nova: [