2025-05-29 10:14:21,435 - INFO - Domain Default found not creating
2025-05-29 10:14:21,586 - INFO - Project ctest-TestBasicPolicy-27168129 not found, creating it
2025-05-29 10:14:22,075 - INFO - Created Project:ctest-TestBasicPolicy-27168129, ID : ad05a0ff-4db8-46fb-8520-8105aef0b88d
2025-05-29 10:14:23,581 - INFO - ================================================================================
2025-05-29 10:14:23,582 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-29 10:14:23,582 - 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-05-29 10:14:23,841 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-05-29 10:14:23,841 - INFO - Initial checks done. Running the testcase now
2025-05-29 10:14:23,841 - INFO -
2025-05-29 10:14:24,406 - DEBUG - Response for create_network : {'network': {'id': '3bba9cd6-170d-4cf5-81e6-a236e652c9c3', 'name': 'ctest-vn-35249852', 'tenant_id': 'ad05a0ff4db846fb85208105aef0b88d', 'project_id': 'ad05a0ff4db846fb85208105aef0b88d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27168129', 'ctest-vn-35249852'], 'port_security_enabled': True, 'description': ''}}
2025-05-29 10:14:24,625 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd87643d7-15dd-427e-8c4d-02b15390928d', 'name': '', 'tenant_id': 'ad05a0ff4db846fb85208105aef0b88d', 'network_id': '3bba9cd6-170d-4cf5-81e6-a236e652c9c3', 'ip_version': 4, 'cidr': '97.182.183.192/26', 'allocation_pools': [{'start': '97.182.183.194', 'end': '97.182.183.254'}], 'gateway_ip': '97.182.183.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.182.183.194', 'tags': [], 'project_id': 'ad05a0ff4db846fb85208105aef0b88d'}}
2025-05-29 10:14:24,643 - INFO - Created VN ctest-vn-35249852
2025-05-29 10:14:24,697 - DEBUG - VN ctest-vn-35249852 UUID is 3bba9cd6-170d-4cf5-81e6-a236e652c9c3
2025-05-29 10:14:25,029 - DEBUG - Response for create_network : {'network': {'id': 'b99874c5-4336-4b64-a7c5-12eb86672ec2', 'name': 'ctest-vn-51121665', 'tenant_id': 'ad05a0ff4db846fb85208105aef0b88d', 'project_id': 'ad05a0ff4db846fb85208105aef0b88d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27168129', 'ctest-vn-51121665'], 'port_security_enabled': True, 'description': ''}}
2025-05-29 10:14:25,250 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fae2fe6d-cdc2-4dab-a724-d511b192b527', 'name': '', 'tenant_id': 'ad05a0ff4db846fb85208105aef0b88d', 'network_id': 'b99874c5-4336-4b64-a7c5-12eb86672ec2', 'ip_version': 4, 'cidr': '82.222.108.0/26', 'allocation_pools': [{'start': '82.222.108.2', 'end': '82.222.108.62'}], 'gateway_ip': '82.222.108.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.222.108.2', 'tags': [], 'project_id': 'ad05a0ff4db846fb85208105aef0b88d'}}
2025-05-29 10:14:25,270 - INFO - Created VN ctest-vn-51121665
2025-05-29 10:14:25,329 - DEBUG - VN ctest-vn-51121665 UUID is b99874c5-4336-4b64-a7c5-12eb86672ec2
2025-05-29 10:14:25,447 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27168129:ctest-vn-35249852, 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-27168129:ctest-vn-51121665, 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-05-29 10:14:25,804 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3bba9cd6-170d-4cf5-81e6-a236e652c9c3', 'name': 'ctest-vn-35249852', 'tenant_id': 'ad05a0ff4db846fb85208105aef0b88d', 'project_id': 'ad05a0ff4db846fb85208105aef0b88d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d87643d7-15dd-427e-8c4d-02b15390928d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27168129', 'ctest-vn-35249852'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27168129', 'ctest-policy-allow-all-82338554']], 'subnet_ipam': [{'subnet_cidr': '97.182.183.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-29 10:14:26,051 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b99874c5-4336-4b64-a7c5-12eb86672ec2', 'name': 'ctest-vn-51121665', 'tenant_id': 'ad05a0ff4db846fb85208105aef0b88d', 'project_id': 'ad05a0ff4db846fb85208105aef0b88d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fae2fe6d-cdc2-4dab-a724-d511b192b527'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27168129', 'ctest-vn-51121665'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27168129', 'ctest-policy-allow-all-82338554']], 'subnet_ipam': [{'subnet_cidr': '82.222.108.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-29 10:14:26,225 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-29 10:14:26,529 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-29 10:14:26,559 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cedd642b-4a19-41b8-8c06-4d637919b587
2025-05-29 10:14:26,574 - DEBUG - Requesting: http://10.0.0.50:8082/project/ad05a0ff-4db8-46fb-8520-8105aef0b88d
2025-05-29 10:14:26,649 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3bba9cd6-170d-4cf5-81e6-a236e652c9c3
2025-05-29 10:14:26,666 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3bba9cd6-170d-4cf5-81e6-a236e652c9c3
2025-05-29 10:14:26,679 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/705581d4-14e1-42bf-99c5-f789dccdc267
2025-05-29 10:14:26,690 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/705581d4-14e1-42bf-99c5-f789dccdc267
2025-05-29 10:14:26,698 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/56a2a5ba-ac39-47fd-8eb8-5b3138e8550c
2025-05-29 10:14:26,706 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-29 10:14:26,706 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3bba9cd6-170d-4cf5-81e6-a236e652c9c3
2025-05-29 10:14:26,717 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/705581d4-14e1-42bf-99c5-f789dccdc267
2025-05-29 10:14:26,734 - INFO - Verified VN network id 8 for VN 3bba9cd6-170d-4cf5-81e6-a236e652c9c3
2025-05-29 10:14:26,734 - INFO - Verifications in API Server for VN ctest-vn-35249852 passed
2025-05-29 10:14:26,735 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3bba9cd6-170d-4cf5-81e6-a236e652c9c3
2025-05-29 10:14:26,745 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/705581d4-14e1-42bf-99c5-f789dccdc267
2025-05-29 10:14:26,753 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/705581d4-14e1-42bf-99c5-f789dccdc267
2025-05-29 10:14:26,762 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/56a2a5ba-ac39-47fd-8eb8-5b3138e8550c
2025-05-29 10:14:26,775 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27168129:ctest-vn-35249852', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27168129', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4303924837229612277', 'uuid-lslong': '9360347232212273603'}, 'enable': 'true', 'created': '2025-05-29T10:14:24', 'last-modified': '2025-05-29T10:14:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.008860'}
2025-05-29 10:14:26,782 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-29 10:14:26,782 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35249852 passed
2025-05-29 10:14:26,783 - DEBUG - ====Verifying policy data for ctest-vn-35249852 in API_Server ======
2025-05-29 10:14:26,783 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-29 10:14:26,790 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cedd642b-4a19-41b8-8c06-4d637919b587
2025-05-29 10:14:26,804 - DEBUG - Requesting: http://10.0.0.50:8082/project/ad05a0ff-4db8-46fb-8520-8105aef0b88d
2025-05-29 10:14:26,881 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3bba9cd6-170d-4cf5-81e6-a236e652c9c3
2025-05-29 10:14:26,892 - DEBUG - ==>Verifying data for policy with id: 9066810e-a973-4603-b22c-4a633b269ac9, fqn: ['default-domain', 'ctest-TestBasicPolicy-27168129', 'ctest-policy-allow-all-82338554']
2025-05-29 10:14:26,892 - INFO - VN ctest-vn-35249852 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-29 10:14:26,893 - DEBUG - Verifying the vn in opserver
2025-05-29 10:14:26,893 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27168129:ctest-vn-35249852 virtual network link through opserver 10.0.0.50
2025-05-29 10:14:26,893 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-29 10:14:27,183 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-29 10:14:27,249 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27168129:ctest-vn-35249852', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27168129:ctest-vn-35249852?flat'}
2025-05-29 10:14:27,249 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27168129:ctest-vn-35249852 is found in opserver
2025-05-29 10:14:27,262 - DEBUG - Do not have enough data to verify VN in agent
2025-05-29 10:14:27,269 - DEBUG - VRF ids for VN ctest-vn-35249852: {}
2025-05-29 10:14:27,269 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-29 10:14:27,277 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cedd642b-4a19-41b8-8c06-4d637919b587
2025-05-29 10:14:27,289 - DEBUG - Requesting: http://10.0.0.50:8082/project/ad05a0ff-4db8-46fb-8520-8105aef0b88d
2025-05-29 10:14:27,374 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b99874c5-4336-4b64-a7c5-12eb86672ec2
2025-05-29 10:14:27,390 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b99874c5-4336-4b64-a7c5-12eb86672ec2
2025-05-29 10:14:27,400 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3287b511-22c0-467e-b863-3fbcfe8e0c46
2025-05-29 10:14:27,409 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3287b511-22c0-467e-b863-3fbcfe8e0c46
2025-05-29 10:14:27,417 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/81c36bd1-a251-4497-a5bc-4780795f416a
2025-05-29 10:14:27,425 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-29 10:14:27,425 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b99874c5-4336-4b64-a7c5-12eb86672ec2
2025-05-29 10:14:27,436 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3287b511-22c0-467e-b863-3fbcfe8e0c46
2025-05-29 10:14:27,453 - INFO - Verified VN network id 9 for VN b99874c5-4336-4b64-a7c5-12eb86672ec2
2025-05-29 10:14:27,453 - INFO - Verifications in API Server for VN ctest-vn-51121665 passed
2025-05-29 10:14:27,453 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b99874c5-4336-4b64-a7c5-12eb86672ec2
2025-05-29 10:14:27,465 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3287b511-22c0-467e-b863-3fbcfe8e0c46
2025-05-29 10:14:27,474 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3287b511-22c0-467e-b863-3fbcfe8e0c46
2025-05-29 10:14:27,483 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/81c36bd1-a251-4497-a5bc-4780795f416a
2025-05-29 10:14:27,496 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27168129:ctest-vn-51121665', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27168129', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13373567484061698916', 'uuid-lslong': '12089089577527488194'}, 'enable': 'true', 'created': '2025-05-29T10:14:24', 'last-modified': '2025-05-29T10:14:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.467993'}
2025-05-29 10:14:27,503 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-29 10:14:27,503 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51121665 passed
2025-05-29 10:14:27,504 - DEBUG - ====Verifying policy data for ctest-vn-51121665 in API_Server ======
2025-05-29 10:14:27,504 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-29 10:14:27,510 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cedd642b-4a19-41b8-8c06-4d637919b587
2025-05-29 10:14:27,523 - DEBUG - Requesting: http://10.0.0.50:8082/project/ad05a0ff-4db8-46fb-8520-8105aef0b88d
2025-05-29 10:14:27,598 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b99874c5-4336-4b64-a7c5-12eb86672ec2
2025-05-29 10:14:27,609 - DEBUG - ==>Verifying data for policy with id: 9066810e-a973-4603-b22c-4a633b269ac9, fqn: ['default-domain', 'ctest-TestBasicPolicy-27168129', 'ctest-policy-allow-all-82338554']
2025-05-29 10:14:27,609 - INFO - VN ctest-vn-51121665 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-29 10:14:27,609 - DEBUG - Verifying the vn in opserver
2025-05-29 10:14:27,609 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27168129:ctest-vn-51121665 virtual network link through opserver 10.0.0.50
2025-05-29 10:14:27,609 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-29 10:14:27,621 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27168129:ctest-vn-51121665', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27168129:ctest-vn-51121665?flat'}
2025-05-29 10:14:27,621 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27168129:ctest-vn-51121665 is found in opserver
2025-05-29 10:14:27,637 - DEBUG - Do not have enough data to verify VN in agent
2025-05-29 10:14:27,644 - DEBUG - VRF ids for VN ctest-vn-51121665: {}
2025-05-29 10:14:27,710 - DEBUG - Services list from nova: [