2025-03-27 19:26:18,624 - INFO - Domain Default found not creating
2025-03-27 19:26:18,865 - INFO - Project ctest-TestBasicPolicy-54340561 not found, creating it
2025-03-27 19:26:19,336 - INFO - Created Project:ctest-TestBasicPolicy-54340561, ID : 33b7b0f3-594a-4a01-8b0a-51a785502981
2025-03-27 19:26:20,773 - INFO - ================================================================================
2025-03-27 19:26:20,774 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-27 19:26:20,774 - 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-03-27 19:26:21,036 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.7': '0'}} with
2025-03-27 19:26:21,036 - INFO - Initial checks done. Running the testcase now
2025-03-27 19:26:21,036 - INFO -
2025-03-27 19:26:21,635 - DEBUG - Response for create_network : {'network': {'id': 'f8718c3d-ca4d-49d7-b50e-4407cd26490a', 'name': 'ctest-vn-37558748', 'tenant_id': '33b7b0f3594a4a018b0a51a785502981', 'project_id': '33b7b0f3594a4a018b0a51a785502981', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54340561', 'ctest-vn-37558748'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 19:26:21,860 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a42bf984-a657-4989-a2b4-75a3362b84d1', 'name': '', 'tenant_id': '33b7b0f3594a4a018b0a51a785502981', 'network_id': 'f8718c3d-ca4d-49d7-b50e-4407cd26490a', 'ip_version': 4, 'cidr': '136.205.3.64/26', 'allocation_pools': [{'start': '136.205.3.66', 'end': '136.205.3.126'}], 'gateway_ip': '136.205.3.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.205.3.66', 'tags': [], 'project_id': '33b7b0f3594a4a018b0a51a785502981'}}
2025-03-27 19:26:21,878 - INFO - Created VN ctest-vn-37558748
2025-03-27 19:26:21,933 - DEBUG - VN ctest-vn-37558748 UUID is f8718c3d-ca4d-49d7-b50e-4407cd26490a
2025-03-27 19:26:22,272 - DEBUG - Response for create_network : {'network': {'id': '35ad5959-6363-4530-85d7-ad9f42beb5af', 'name': 'ctest-vn-79409058', 'tenant_id': '33b7b0f3594a4a018b0a51a785502981', 'project_id': '33b7b0f3594a4a018b0a51a785502981', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54340561', 'ctest-vn-79409058'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 19:26:22,493 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d68f51d-c0d7-4758-a110-bcf026729f5d', 'name': '', 'tenant_id': '33b7b0f3594a4a018b0a51a785502981', 'network_id': '35ad5959-6363-4530-85d7-ad9f42beb5af', 'ip_version': 4, 'cidr': '30.153.49.64/26', 'allocation_pools': [{'start': '30.153.49.66', 'end': '30.153.49.126'}], 'gateway_ip': '30.153.49.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.153.49.66', 'tags': [], 'project_id': '33b7b0f3594a4a018b0a51a785502981'}}
2025-03-27 19:26:22,512 - INFO - Created VN ctest-vn-79409058
2025-03-27 19:26:22,565 - DEBUG - VN ctest-vn-79409058 UUID is 35ad5959-6363-4530-85d7-ad9f42beb5af
2025-03-27 19:26:22,688 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54340561:ctest-vn-37558748, 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-54340561:ctest-vn-79409058, 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-03-27 19:26:22,999 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f8718c3d-ca4d-49d7-b50e-4407cd26490a', 'name': 'ctest-vn-37558748', 'tenant_id': '33b7b0f3594a4a018b0a51a785502981', 'project_id': '33b7b0f3594a4a018b0a51a785502981', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a42bf984-a657-4989-a2b4-75a3362b84d1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54340561', 'ctest-vn-37558748'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54340561', 'ctest-policy-allow-all-01955530']], 'subnet_ipam': [{'subnet_cidr': '136.205.3.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 19:26:23,239 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '35ad5959-6363-4530-85d7-ad9f42beb5af', 'name': 'ctest-vn-79409058', 'tenant_id': '33b7b0f3594a4a018b0a51a785502981', 'project_id': '33b7b0f3594a4a018b0a51a785502981', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2d68f51d-c0d7-4758-a110-bcf026729f5d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54340561', 'ctest-vn-79409058'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54340561', 'ctest-policy-allow-all-01955530']], 'subnet_ipam': [{'subnet_cidr': '30.153.49.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 19:26:23,401 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2025-03-27 19:26:23,700 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2025-03-27 19:26:23,728 - DEBUG - Requesting: http://10.0.0.52:8082/domain/5109df83-b8ce-463f-8e76-95bf2fe13b1f
2025-03-27 19:26:23,742 - DEBUG - Requesting: http://10.0.0.52:8082/project/33b7b0f3-594a-4a01-8b0a-51a785502981
2025-03-27 19:26:23,824 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/f8718c3d-ca4d-49d7-b50e-4407cd26490a
2025-03-27 19:26:23,835 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/f8718c3d-ca4d-49d7-b50e-4407cd26490a
2025-03-27 19:26:23,844 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/67eb90bd-b301-490b-a517-8461eb4ec72f
2025-03-27 19:26:23,852 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/67eb90bd-b301-490b-a517-8461eb4ec72f
2025-03-27 19:26:23,860 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/d992b9bc-cc42-440f-9067-b1539c89afe8
2025-03-27 19:26:23,868 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 19:26:23,868 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/f8718c3d-ca4d-49d7-b50e-4407cd26490a
2025-03-27 19:26:23,878 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/67eb90bd-b301-490b-a517-8461eb4ec72f
2025-03-27 19:26:23,894 - INFO - Verified VN network id 9 for VN f8718c3d-ca4d-49d7-b50e-4407cd26490a
2025-03-27 19:26:23,894 - INFO - Verifications in API Server for VN ctest-vn-37558748 passed
2025-03-27 19:26:23,894 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/f8718c3d-ca4d-49d7-b50e-4407cd26490a
2025-03-27 19:26:23,904 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/67eb90bd-b301-490b-a517-8461eb4ec72f
2025-03-27 19:26:23,916 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/67eb90bd-b301-490b-a517-8461eb4ec72f
2025-03-27 19:26:23,924 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/d992b9bc-cc42-440f-9067-b1539c89afe8
2025-03-27 19:26:23,937 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54340561:ctest-vn-37558748', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54340561', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17902244190789388759', 'uuid-lslong': '13046439970836203786'}, 'enable': 'true', 'created': '2025-03-27T19:26:21', 'last-modified': '2025-03-27T19:26:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.968881'}
2025-03-27 19:26:23,944 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 19:26:23,944 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37558748 passed
2025-03-27 19:26:23,944 - DEBUG - ====Verifying policy data for ctest-vn-37558748 in API_Server ======
2025-03-27 19:26:23,944 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2025-03-27 19:26:23,950 - DEBUG - Requesting: http://10.0.0.52:8082/domain/5109df83-b8ce-463f-8e76-95bf2fe13b1f
2025-03-27 19:26:23,965 - DEBUG - Requesting: http://10.0.0.52:8082/project/33b7b0f3-594a-4a01-8b0a-51a785502981
2025-03-27 19:26:24,041 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/f8718c3d-ca4d-49d7-b50e-4407cd26490a
2025-03-27 19:26:24,051 - DEBUG - ==>Verifying data for policy with id: 7ebbcb9d-71c9-4c1f-8e60-be3ea3aae4e7, fqn: ['default-domain', 'ctest-TestBasicPolicy-54340561', 'ctest-policy-allow-all-01955530']
2025-03-27 19:26:24,051 - INFO - VN ctest-vn-37558748 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 19:26:24,051 - DEBUG - Verifying the vn in opserver
2025-03-27 19:26:24,051 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54340561:ctest-vn-37558748 virtual network link through opserver 10.0.0.52
2025-03-27 19:26:24,051 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2025-03-27 19:26:24,344 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2025-03-27 19:26:24,401 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54340561:ctest-vn-37558748', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54340561:ctest-vn-37558748?flat'}
2025-03-27 19:26:24,401 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54340561:ctest-vn-37558748 is found in opserver
2025-03-27 19:26:24,415 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 19:26:24,421 - DEBUG - VRF ids for VN ctest-vn-37558748: {}
2025-03-27 19:26:24,421 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2025-03-27 19:26:24,427 - DEBUG - Requesting: http://10.0.0.52:8082/domain/5109df83-b8ce-463f-8e76-95bf2fe13b1f
2025-03-27 19:26:24,438 - DEBUG - Requesting: http://10.0.0.52:8082/project/33b7b0f3-594a-4a01-8b0a-51a785502981
2025-03-27 19:26:24,517 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/35ad5959-6363-4530-85d7-ad9f42beb5af
2025-03-27 19:26:24,532 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/35ad5959-6363-4530-85d7-ad9f42beb5af
2025-03-27 19:26:24,542 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/8e0d83e0-521d-4d06-b4dd-7153f844b8fb
2025-03-27 19:26:24,549 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/8e0d83e0-521d-4d06-b4dd-7153f844b8fb
2025-03-27 19:26:24,557 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/7a3d11cf-b6c2-4181-b364-d7fc1e148919
2025-03-27 19:26:24,564 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 19:26:24,564 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/35ad5959-6363-4530-85d7-ad9f42beb5af
2025-03-27 19:26:24,576 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/8e0d83e0-521d-4d06-b4dd-7153f844b8fb
2025-03-27 19:26:24,590 - INFO - Verified VN network id 10 for VN 35ad5959-6363-4530-85d7-ad9f42beb5af
2025-03-27 19:26:24,591 - INFO - Verifications in API Server for VN ctest-vn-79409058 passed
2025-03-27 19:26:24,591 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/35ad5959-6363-4530-85d7-ad9f42beb5af
2025-03-27 19:26:24,601 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/8e0d83e0-521d-4d06-b4dd-7153f844b8fb
2025-03-27 19:26:24,608 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/8e0d83e0-521d-4d06-b4dd-7153f844b8fb
2025-03-27 19:26:24,616 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/7a3d11cf-b6c2-4181-b364-d7fc1e148919
2025-03-27 19:26:24,629 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54340561:ctest-vn-79409058', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54340561', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3867845895435535664', 'uuid-lslong': '9644368026568406447'}, 'enable': 'true', 'created': '2025-03-27T19:26:22', 'last-modified': '2025-03-27T19:26:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.423034'}
2025-03-27 19:26:24,636 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 19:26:24,636 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79409058 passed
2025-03-27 19:26:24,636 - DEBUG - ====Verifying policy data for ctest-vn-79409058 in API_Server ======
2025-03-27 19:26:24,636 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2025-03-27 19:26:24,642 - DEBUG - Requesting: http://10.0.0.52:8082/domain/5109df83-b8ce-463f-8e76-95bf2fe13b1f
2025-03-27 19:26:24,654 - DEBUG - Requesting: http://10.0.0.52:8082/project/33b7b0f3-594a-4a01-8b0a-51a785502981
2025-03-27 19:26:24,733 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/35ad5959-6363-4530-85d7-ad9f42beb5af
2025-03-27 19:26:24,743 - DEBUG - ==>Verifying data for policy with id: 7ebbcb9d-71c9-4c1f-8e60-be3ea3aae4e7, fqn: ['default-domain', 'ctest-TestBasicPolicy-54340561', 'ctest-policy-allow-all-01955530']
2025-03-27 19:26:24,743 - INFO - VN ctest-vn-79409058 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 19:26:24,743 - DEBUG - Verifying the vn in opserver
2025-03-27 19:26:24,743 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54340561:ctest-vn-79409058 virtual network link through opserver 10.0.0.52
2025-03-27 19:26:24,743 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2025-03-27 19:26:24,754 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54340561:ctest-vn-79409058', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54340561:ctest-vn-79409058?flat'}
2025-03-27 19:26:24,754 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54340561:ctest-vn-79409058 is found in opserver
2025-03-27 19:26:24,764 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 19:26:24,770 - DEBUG - VRF ids for VN ctest-vn-79409058: {}
2025-03-27 19:26:24,827 - DEBUG - Services list from nova: [