2025-01-09 20:26:47,997 - INFO - Domain Default found not creating
2025-01-09 20:26:48,141 - INFO - Project ctest-TestBasicPolicy-55504754 not found, creating it
2025-01-09 20:26:48,625 - INFO - Created Project:ctest-TestBasicPolicy-55504754, ID : 27a7d1e1-3e1c-4ac4-896f-f35f6edae8f5
2025-01-09 20:26:50,069 - INFO - ================================================================================
2025-01-09 20:26:50,069 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-09 20:26:50,069 - 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-01-09 20:26:50,326 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.7': '0'}} with
2025-01-09 20:26:50,326 - INFO - Initial checks done. Running the testcase now
2025-01-09 20:26:50,326 - INFO -
2025-01-09 20:26:50,868 - DEBUG - Response for create_network : {'network': {'id': '31d65a15-7feb-4c28-9a53-d5f1822c8448', 'name': 'ctest-vn-50108529', 'tenant_id': '27a7d1e13e1c4ac4896ff35f6edae8f5', 'project_id': '27a7d1e13e1c4ac4896ff35f6edae8f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55504754', 'ctest-vn-50108529'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 20:26:51,039 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a5c92ef5-1ec0-4e71-916e-a09def7fbe91', 'name': '', 'tenant_id': '27a7d1e13e1c4ac4896ff35f6edae8f5', 'network_id': '31d65a15-7feb-4c28-9a53-d5f1822c8448', 'ip_version': 4, 'cidr': '157.152.248.128/26', 'allocation_pools': [{'start': '157.152.248.130', 'end': '157.152.248.190'}], 'gateway_ip': '157.152.248.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.152.248.130', 'tags': [], 'project_id': '27a7d1e13e1c4ac4896ff35f6edae8f5'}}
2025-01-09 20:26:51,058 - INFO - Created VN ctest-vn-50108529
2025-01-09 20:26:51,112 - DEBUG - VN ctest-vn-50108529 UUID is 31d65a15-7feb-4c28-9a53-d5f1822c8448
2025-01-09 20:26:51,403 - DEBUG - Response for create_network : {'network': {'id': 'fad06ac8-1380-4b17-91a3-8211de3d2dbf', 'name': 'ctest-vn-79940435', 'tenant_id': '27a7d1e13e1c4ac4896ff35f6edae8f5', 'project_id': '27a7d1e13e1c4ac4896ff35f6edae8f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55504754', 'ctest-vn-79940435'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 20:26:51,594 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9b62cb2-b6c1-451b-bbf0-3e7a9e25b0ee', 'name': '', 'tenant_id': '27a7d1e13e1c4ac4896ff35f6edae8f5', 'network_id': 'fad06ac8-1380-4b17-91a3-8211de3d2dbf', 'ip_version': 4, 'cidr': '114.227.111.128/26', 'allocation_pools': [{'start': '114.227.111.130', 'end': '114.227.111.190'}], 'gateway_ip': '114.227.111.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.227.111.130', 'tags': [], 'project_id': '27a7d1e13e1c4ac4896ff35f6edae8f5'}}
2025-01-09 20:26:51,611 - INFO - Created VN ctest-vn-79940435
2025-01-09 20:26:51,664 - DEBUG - VN ctest-vn-79940435 UUID is fad06ac8-1380-4b17-91a3-8211de3d2dbf
2025-01-09 20:26:51,788 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-50108529, 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-55504754:ctest-vn-79940435, 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-01-09 20:26:52,094 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '31d65a15-7feb-4c28-9a53-d5f1822c8448', 'name': 'ctest-vn-50108529', 'tenant_id': '27a7d1e13e1c4ac4896ff35f6edae8f5', 'project_id': '27a7d1e13e1c4ac4896ff35f6edae8f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a5c92ef5-1ec0-4e71-916e-a09def7fbe91'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55504754', 'ctest-vn-50108529'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55504754', 'ctest-policy-allow-all-64112924']], 'subnet_ipam': [{'subnet_cidr': '157.152.248.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 20:26:52,351 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fad06ac8-1380-4b17-91a3-8211de3d2dbf', 'name': 'ctest-vn-79940435', 'tenant_id': '27a7d1e13e1c4ac4896ff35f6edae8f5', 'project_id': '27a7d1e13e1c4ac4896ff35f6edae8f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a9b62cb2-b6c1-451b-bbf0-3e7a9e25b0ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55504754', 'ctest-vn-79940435'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55504754', 'ctest-policy-allow-all-64112924']], 'subnet_ipam': [{'subnet_cidr': '114.227.111.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 20:26:52,516 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-09 20:26:52,810 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-09 20:26:52,841 - DEBUG - Requesting: http://10.0.0.35:8082/domain/58ab762c-818c-4d7d-b2e1-6317845986a2
2025-01-09 20:26:52,856 - DEBUG - Requesting: http://10.0.0.35:8082/project/27a7d1e1-3e1c-4ac4-896f-f35f6edae8f5
2025-01-09 20:26:52,927 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/31d65a15-7feb-4c28-9a53-d5f1822c8448
2025-01-09 20:26:52,942 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/31d65a15-7feb-4c28-9a53-d5f1822c8448
2025-01-09 20:26:52,954 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d7af91c4-3d83-4a3c-ade7-c0f87d74abce
2025-01-09 20:26:52,963 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d7af91c4-3d83-4a3c-ade7-c0f87d74abce
2025-01-09 20:26:52,971 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/8c1d6494-8975-49c8-b3ca-6b3c7f88809b
2025-01-09 20:26:52,980 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 20:26:52,980 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/31d65a15-7feb-4c28-9a53-d5f1822c8448
2025-01-09 20:26:52,992 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d7af91c4-3d83-4a3c-ade7-c0f87d74abce
2025-01-09 20:26:53,008 - INFO - Verified VN network id 7 for VN 31d65a15-7feb-4c28-9a53-d5f1822c8448
2025-01-09 20:26:53,008 - INFO - Verifications in API Server for VN ctest-vn-50108529 passed
2025-01-09 20:26:53,008 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/31d65a15-7feb-4c28-9a53-d5f1822c8448
2025-01-09 20:26:53,022 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d7af91c4-3d83-4a3c-ade7-c0f87d74abce
2025-01-09 20:26:53,031 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d7af91c4-3d83-4a3c-ade7-c0f87d74abce
2025-01-09 20:26:53,039 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/8c1d6494-8975-49c8-b3ca-6b3c7f88809b
2025-01-09 20:26:53,052 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-50108529', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55504754', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3591156801261489192', 'uuid-lslong': '11120467138155676744'}, 'enable': 'true', 'created': '2025-01-09T20:26:50', 'last-modified': '2025-01-09T20:26:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.985638'}
2025-01-09 20:26:53,058 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 20:26:53,058 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50108529 passed
2025-01-09 20:26:53,059 - DEBUG - ====Verifying policy data for ctest-vn-50108529 in API_Server ======
2025-01-09 20:26:53,059 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-09 20:26:53,065 - DEBUG - Requesting: http://10.0.0.35:8082/domain/58ab762c-818c-4d7d-b2e1-6317845986a2
2025-01-09 20:26:53,079 - DEBUG - Requesting: http://10.0.0.35:8082/project/27a7d1e1-3e1c-4ac4-896f-f35f6edae8f5
2025-01-09 20:26:53,158 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/31d65a15-7feb-4c28-9a53-d5f1822c8448
2025-01-09 20:26:53,170 - DEBUG - ==>Verifying data for policy with id: 1113e284-a806-4893-a6db-3295a3512263, fqn: ['default-domain', 'ctest-TestBasicPolicy-55504754', 'ctest-policy-allow-all-64112924']
2025-01-09 20:26:53,170 - INFO - VN ctest-vn-50108529 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 20:26:53,170 - DEBUG - Verifying the vn in opserver
2025-01-09 20:26:53,170 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-50108529 virtual network link through opserver 10.0.0.35
2025-01-09 20:26:53,170 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-01-09 20:26:53,469 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-01-09 20:26:53,527 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-50108529', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-50108529?flat'}
2025-01-09 20:26:53,527 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-50108529 is found in opserver
2025-01-09 20:26:53,545 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 20:26:53,552 - DEBUG - VRF ids for VN ctest-vn-50108529: {}
2025-01-09 20:26:53,552 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-09 20:26:53,558 - DEBUG - Requesting: http://10.0.0.35:8082/domain/58ab762c-818c-4d7d-b2e1-6317845986a2
2025-01-09 20:26:53,570 - DEBUG - Requesting: http://10.0.0.35:8082/project/27a7d1e1-3e1c-4ac4-896f-f35f6edae8f5
2025-01-09 20:26:53,644 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fad06ac8-1380-4b17-91a3-8211de3d2dbf
2025-01-09 20:26:53,661 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fad06ac8-1380-4b17-91a3-8211de3d2dbf
2025-01-09 20:26:53,672 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/02884886-ad3e-45cc-bdae-bf7d496bce7f
2025-01-09 20:26:53,680 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/02884886-ad3e-45cc-bdae-bf7d496bce7f
2025-01-09 20:26:53,688 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/33d9e9df-a880-4a56-ac12-770ecdb66690
2025-01-09 20:26:53,696 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 20:26:53,696 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fad06ac8-1380-4b17-91a3-8211de3d2dbf
2025-01-09 20:26:53,705 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/02884886-ad3e-45cc-bdae-bf7d496bce7f
2025-01-09 20:26:53,727 - INFO - Verified VN network id 8 for VN fad06ac8-1380-4b17-91a3-8211de3d2dbf
2025-01-09 20:26:53,727 - INFO - Verifications in API Server for VN ctest-vn-79940435 passed
2025-01-09 20:26:53,727 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fad06ac8-1380-4b17-91a3-8211de3d2dbf
2025-01-09 20:26:53,739 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/02884886-ad3e-45cc-bdae-bf7d496bce7f
2025-01-09 20:26:53,750 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/02884886-ad3e-45cc-bdae-bf7d496bce7f
2025-01-09 20:26:53,760 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/33d9e9df-a880-4a56-ac12-770ecdb66690
2025-01-09 20:26:53,774 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-79940435', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55504754', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18073062712190978839', 'uuid-lslong': '10494374569957993919'}, 'enable': 'true', 'created': '2025-01-09T20:26:51', 'last-modified': '2025-01-09T20:26:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.449034'}
2025-01-09 20:26:53,781 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 20:26:53,781 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79940435 passed
2025-01-09 20:26:53,781 - DEBUG - ====Verifying policy data for ctest-vn-79940435 in API_Server ======
2025-01-09 20:26:53,781 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-09 20:26:53,787 - DEBUG - Requesting: http://10.0.0.35:8082/domain/58ab762c-818c-4d7d-b2e1-6317845986a2
2025-01-09 20:26:53,800 - DEBUG - Requesting: http://10.0.0.35:8082/project/27a7d1e1-3e1c-4ac4-896f-f35f6edae8f5
2025-01-09 20:26:53,876 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fad06ac8-1380-4b17-91a3-8211de3d2dbf
2025-01-09 20:26:53,887 - DEBUG - ==>Verifying data for policy with id: 1113e284-a806-4893-a6db-3295a3512263, fqn: ['default-domain', 'ctest-TestBasicPolicy-55504754', 'ctest-policy-allow-all-64112924']
2025-01-09 20:26:53,887 - INFO - VN ctest-vn-79940435 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 20:26:53,887 - DEBUG - Verifying the vn in opserver
2025-01-09 20:26:53,887 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-79940435 virtual network link through opserver 10.0.0.35
2025-01-09 20:26:53,887 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-01-09 20:26:53,897 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-79940435', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-79940435?flat'}
2025-01-09 20:26:53,897 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-79940435 is found in opserver
2025-01-09 20:26:53,908 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 20:26:53,914 - DEBUG - VRF ids for VN ctest-vn-79940435: {}
2025-01-09 20:26:53,976 - DEBUG - Services list from nova: [