2025-07-08 11:40:23,424 - INFO - Domain Default found not creating
2025-07-08 11:40:23,568 - INFO - Project ctest-TestBasicPolicy-77117279 not found, creating it
2025-07-08 11:40:24,050 - INFO - Created Project:ctest-TestBasicPolicy-77117279, ID : c291ec54-c736-486a-a255-a0c5f5f096f5
2025-07-08 11:40:25,500 - INFO - ================================================================================
2025-07-08 11:40:25,500 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-08 11:40:25,500 - 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-08 11:40:25,760 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.14': '0'}} with
2025-07-08 11:40:25,760 - INFO - Initial checks done. Running the testcase now
2025-07-08 11:40:25,760 - INFO -
2025-07-08 11:40:26,300 - DEBUG - Response for create_network : {'network': {'id': '9b39501f-5dd2-4e1e-9610-981f7c44ba59', 'name': 'ctest-vn-23436757', 'tenant_id': 'c291ec54c736486aa255a0c5f5f096f5', 'project_id': 'c291ec54c736486aa255a0c5f5f096f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77117279', 'ctest-vn-23436757'], 'port_security_enabled': True, 'description': ''}}
2025-07-08 11:40:26,542 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ddee5ec2-a982-4ac8-8c53-6e21e9a4dfae', 'name': '', 'tenant_id': 'c291ec54c736486aa255a0c5f5f096f5', 'network_id': '9b39501f-5dd2-4e1e-9610-981f7c44ba59', 'ip_version': 4, 'cidr': '159.139.52.0/26', 'allocation_pools': [{'start': '159.139.52.2', 'end': '159.139.52.62'}], 'gateway_ip': '159.139.52.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.139.52.2', 'tags': [], 'project_id': 'c291ec54c736486aa255a0c5f5f096f5'}}
2025-07-08 11:40:26,561 - INFO - Created VN ctest-vn-23436757
2025-07-08 11:40:26,614 - DEBUG - VN ctest-vn-23436757 UUID is 9b39501f-5dd2-4e1e-9610-981f7c44ba59
2025-07-08 11:40:26,938 - DEBUG - Response for create_network : {'network': {'id': '8cc25a8f-a15e-4724-b9f3-6112edcf4512', 'name': 'ctest-vn-58948359', 'tenant_id': 'c291ec54c736486aa255a0c5f5f096f5', 'project_id': 'c291ec54c736486aa255a0c5f5f096f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77117279', 'ctest-vn-58948359'], 'port_security_enabled': True, 'description': ''}}
2025-07-08 11:40:27,103 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2d86453-0fe6-47dd-a1ea-122f809e6cee', 'name': '', 'tenant_id': 'c291ec54c736486aa255a0c5f5f096f5', 'network_id': '8cc25a8f-a15e-4724-b9f3-6112edcf4512', 'ip_version': 4, 'cidr': '133.97.101.192/26', 'allocation_pools': [{'start': '133.97.101.194', 'end': '133.97.101.254'}], 'gateway_ip': '133.97.101.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.97.101.194', 'tags': [], 'project_id': 'c291ec54c736486aa255a0c5f5f096f5'}}
2025-07-08 11:40:27,123 - INFO - Created VN ctest-vn-58948359
2025-07-08 11:40:27,178 - DEBUG - VN ctest-vn-58948359 UUID is 8cc25a8f-a15e-4724-b9f3-6112edcf4512
2025-07-08 11:40:27,299 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77117279:ctest-vn-23436757, 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-77117279:ctest-vn-58948359, 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-08 11:40:27,607 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b39501f-5dd2-4e1e-9610-981f7c44ba59', 'name': 'ctest-vn-23436757', 'tenant_id': 'c291ec54c736486aa255a0c5f5f096f5', 'project_id': 'c291ec54c736486aa255a0c5f5f096f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ddee5ec2-a982-4ac8-8c53-6e21e9a4dfae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77117279', 'ctest-vn-23436757'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77117279', 'ctest-policy-allow-all-95197694']], 'subnet_ipam': [{'subnet_cidr': '159.139.52.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-08 11:40:27,886 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8cc25a8f-a15e-4724-b9f3-6112edcf4512', 'name': 'ctest-vn-58948359', 'tenant_id': 'c291ec54c736486aa255a0c5f5f096f5', 'project_id': 'c291ec54c736486aa255a0c5f5f096f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d2d86453-0fe6-47dd-a1ea-122f809e6cee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77117279', 'ctest-vn-58948359'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77117279', 'ctest-policy-allow-all-95197694']], 'subnet_ipam': [{'subnet_cidr': '133.97.101.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-08 11:40:28,043 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-08 11:40:28,336 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-08 11:40:28,365 - DEBUG - Requesting: http://10.0.0.49:8082/domain/95d3f63c-e97d-48ee-b56b-46436cb22b9f
2025-07-08 11:40:28,380 - DEBUG - Requesting: http://10.0.0.49:8082/project/c291ec54-c736-486a-a255-a0c5f5f096f5
2025-07-08 11:40:28,451 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b39501f-5dd2-4e1e-9610-981f7c44ba59
2025-07-08 11:40:28,463 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b39501f-5dd2-4e1e-9610-981f7c44ba59
2025-07-08 11:40:28,474 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9973c1bf-9d56-4755-85de-9a9136fce96c
2025-07-08 11:40:28,482 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9973c1bf-9d56-4755-85de-9a9136fce96c
2025-07-08 11:40:28,489 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/bc803679-30fc-49e6-8ae1-bef94bb85e17
2025-07-08 11:40:28,496 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-08 11:40:28,496 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b39501f-5dd2-4e1e-9610-981f7c44ba59
2025-07-08 11:40:28,507 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9973c1bf-9d56-4755-85de-9a9136fce96c
2025-07-08 11:40:28,522 - INFO - Verified VN network id 8 for VN 9b39501f-5dd2-4e1e-9610-981f7c44ba59
2025-07-08 11:40:28,522 - INFO - Verifications in API Server for VN ctest-vn-23436757 passed
2025-07-08 11:40:28,522 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b39501f-5dd2-4e1e-9610-981f7c44ba59
2025-07-08 11:40:28,532 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9973c1bf-9d56-4755-85de-9a9136fce96c
2025-07-08 11:40:28,540 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9973c1bf-9d56-4755-85de-9a9136fce96c
2025-07-08 11:40:28,547 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/bc803679-30fc-49e6-8ae1-bef94bb85e17
2025-07-08 11:40:28,560 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77117279:ctest-vn-23436757', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77117279', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11185059245199609374', 'uuid-lslong': '10813309966312847961'}, 'enable': 'true', 'created': '2025-07-08T11:40:26', 'last-modified': '2025-07-08T11:40:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.985653'}
2025-07-08 11:40:28,567 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-08 11:40:28,567 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23436757 passed
2025-07-08 11:40:28,567 - DEBUG - ====Verifying policy data for ctest-vn-23436757 in API_Server ======
2025-07-08 11:40:28,567 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-08 11:40:28,574 - DEBUG - Requesting: http://10.0.0.49:8082/domain/95d3f63c-e97d-48ee-b56b-46436cb22b9f
2025-07-08 11:40:28,585 - DEBUG - Requesting: http://10.0.0.49:8082/project/c291ec54-c736-486a-a255-a0c5f5f096f5
2025-07-08 11:40:28,662 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b39501f-5dd2-4e1e-9610-981f7c44ba59
2025-07-08 11:40:28,676 - DEBUG - ==>Verifying data for policy with id: 859651ea-5122-4ee2-bc01-0a04b8c4863a, fqn: ['default-domain', 'ctest-TestBasicPolicy-77117279', 'ctest-policy-allow-all-95197694']
2025-07-08 11:40:28,676 - INFO - VN ctest-vn-23436757 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-08 11:40:28,676 - DEBUG - Verifying the vn in opserver
2025-07-08 11:40:28,676 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77117279:ctest-vn-23436757 virtual network link through opserver 10.0.0.49
2025-07-08 11:40:28,677 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-08 11:40:28,969 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-08 11:40:29,027 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77117279:ctest-vn-23436757', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77117279:ctest-vn-23436757?flat'}
2025-07-08 11:40:29,028 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77117279:ctest-vn-23436757 is found in opserver
2025-07-08 11:40:29,041 - DEBUG - Do not have enough data to verify VN in agent
2025-07-08 11:40:29,047 - DEBUG - VRF ids for VN ctest-vn-23436757: {}
2025-07-08 11:40:29,047 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-08 11:40:29,054 - DEBUG - Requesting: http://10.0.0.49:8082/domain/95d3f63c-e97d-48ee-b56b-46436cb22b9f
2025-07-08 11:40:29,067 - DEBUG - Requesting: http://10.0.0.49:8082/project/c291ec54-c736-486a-a255-a0c5f5f096f5
2025-07-08 11:40:29,140 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/8cc25a8f-a15e-4724-b9f3-6112edcf4512
2025-07-08 11:40:29,154 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/8cc25a8f-a15e-4724-b9f3-6112edcf4512
2025-07-08 11:40:29,164 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/c32be7ab-84d7-43c0-9123-dc033dfcaec4
2025-07-08 11:40:29,172 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/c32be7ab-84d7-43c0-9123-dc033dfcaec4
2025-07-08 11:40:29,180 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/66dbb41f-6f31-42bd-8368-758e87fab82f
2025-07-08 11:40:29,187 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-08 11:40:29,187 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/8cc25a8f-a15e-4724-b9f3-6112edcf4512
2025-07-08 11:40:29,198 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/c32be7ab-84d7-43c0-9123-dc033dfcaec4
2025-07-08 11:40:29,216 - INFO - Verified VN network id 9 for VN 8cc25a8f-a15e-4724-b9f3-6112edcf4512
2025-07-08 11:40:29,216 - INFO - Verifications in API Server for VN ctest-vn-58948359 passed
2025-07-08 11:40:29,216 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/8cc25a8f-a15e-4724-b9f3-6112edcf4512
2025-07-08 11:40:29,226 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/c32be7ab-84d7-43c0-9123-dc033dfcaec4
2025-07-08 11:40:29,234 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/c32be7ab-84d7-43c0-9123-dc033dfcaec4
2025-07-08 11:40:29,244 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/66dbb41f-6f31-42bd-8368-758e87fab82f
2025-07-08 11:40:29,257 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77117279:ctest-vn-58948359', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77117279', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10142768883725911844', 'uuid-lslong': '13399160050284446994'}, 'enable': 'true', 'created': '2025-07-08T11:40:26', 'last-modified': '2025-07-08T11:40:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.438457'}
2025-07-08 11:40:29,263 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-08 11:40:29,264 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58948359 passed
2025-07-08 11:40:29,264 - DEBUG - ====Verifying policy data for ctest-vn-58948359 in API_Server ======
2025-07-08 11:40:29,264 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-08 11:40:29,270 - DEBUG - Requesting: http://10.0.0.49:8082/domain/95d3f63c-e97d-48ee-b56b-46436cb22b9f
2025-07-08 11:40:29,284 - DEBUG - Requesting: http://10.0.0.49:8082/project/c291ec54-c736-486a-a255-a0c5f5f096f5
2025-07-08 11:40:29,363 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/8cc25a8f-a15e-4724-b9f3-6112edcf4512
2025-07-08 11:40:29,375 - DEBUG - ==>Verifying data for policy with id: 859651ea-5122-4ee2-bc01-0a04b8c4863a, fqn: ['default-domain', 'ctest-TestBasicPolicy-77117279', 'ctest-policy-allow-all-95197694']
2025-07-08 11:40:29,375 - INFO - VN ctest-vn-58948359 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-08 11:40:29,375 - DEBUG - Verifying the vn in opserver
2025-07-08 11:40:29,375 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77117279:ctest-vn-58948359 virtual network link through opserver 10.0.0.49
2025-07-08 11:40:29,375 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-08 11:40:29,387 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77117279:ctest-vn-58948359', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77117279:ctest-vn-58948359?flat'}
2025-07-08 11:40:29,387 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77117279:ctest-vn-58948359 is found in opserver
2025-07-08 11:40:29,397 - DEBUG - Do not have enough data to verify VN in agent
2025-07-08 11:40:29,403 - DEBUG - VRF ids for VN ctest-vn-58948359: {}
2025-07-08 11:40:29,462 - DEBUG - Services list from nova: [