2025-03-27 01:10:53,140 - INFO - Domain Default found not creating
2025-03-27 01:10:53,325 - INFO - Project ctest-TestBasicPolicy-54483214 not found, creating it
2025-03-27 01:10:53,853 - INFO - Created Project:ctest-TestBasicPolicy-54483214, ID : cf1d3490-69a8-473b-a7f0-5a890b075654
2025-03-27 01:10:55,474 - INFO - ================================================================================
2025-03-27 01:10:55,475 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-27 01:10:55,475 - 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 01:10:55,751 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.12': '0'}} with
2025-03-27 01:10:55,752 - INFO - Initial checks done. Running the testcase now
2025-03-27 01:10:55,752 - INFO -
2025-03-27 01:10:56,807 - DEBUG - Response for create_network : {'network': {'id': '5ff56803-f825-4da6-957b-1a551398b957', 'name': 'ctest-vn-64889760', 'tenant_id': 'cf1d349069a8473ba7f05a890b075654', 'project_id': 'cf1d349069a8473ba7f05a890b075654', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54483214', 'ctest-vn-64889760'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 01:10:57,008 - DEBUG - Response for create_subnet : {'subnet': {'id': '6b3beffd-824d-48c3-8c4c-e82be828960b', 'name': '', 'tenant_id': 'cf1d349069a8473ba7f05a890b075654', 'network_id': '5ff56803-f825-4da6-957b-1a551398b957', 'ip_version': 4, 'cidr': '157.64.62.0/26', 'allocation_pools': [{'start': '157.64.62.2', 'end': '157.64.62.62'}], 'gateway_ip': '157.64.62.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.64.62.2', 'tags': [], 'project_id': 'cf1d349069a8473ba7f05a890b075654'}}
2025-03-27 01:10:57,033 - INFO - Created VN ctest-vn-64889760
2025-03-27 01:10:57,093 - DEBUG - VN ctest-vn-64889760 UUID is 5ff56803-f825-4da6-957b-1a551398b957
2025-03-27 01:10:57,444 - DEBUG - Response for create_network : {'network': {'id': '4cfef761-c661-476d-9cde-8b949ae673c7', 'name': 'ctest-vn-18656699', 'tenant_id': 'cf1d349069a8473ba7f05a890b075654', 'project_id': 'cf1d349069a8473ba7f05a890b075654', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54483214', 'ctest-vn-18656699'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 01:10:57,687 - DEBUG - Response for create_subnet : {'subnet': {'id': '02e9e5b3-d332-4682-b116-f3908a8bee4d', 'name': '', 'tenant_id': 'cf1d349069a8473ba7f05a890b075654', 'network_id': '4cfef761-c661-476d-9cde-8b949ae673c7', 'ip_version': 4, 'cidr': '43.195.130.128/26', 'allocation_pools': [{'start': '43.195.130.130', 'end': '43.195.130.190'}], 'gateway_ip': '43.195.130.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.195.130.130', 'tags': [], 'project_id': 'cf1d349069a8473ba7f05a890b075654'}}
2025-03-27 01:10:57,709 - INFO - Created VN ctest-vn-18656699
2025-03-27 01:10:57,764 - DEBUG - VN ctest-vn-18656699 UUID is 4cfef761-c661-476d-9cde-8b949ae673c7
2025-03-27 01:10:57,897 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54483214:ctest-vn-64889760, 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-54483214:ctest-vn-18656699, 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 01:10:58,240 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5ff56803-f825-4da6-957b-1a551398b957', 'name': 'ctest-vn-64889760', 'tenant_id': 'cf1d349069a8473ba7f05a890b075654', 'project_id': 'cf1d349069a8473ba7f05a890b075654', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6b3beffd-824d-48c3-8c4c-e82be828960b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54483214', 'ctest-vn-64889760'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54483214', 'ctest-policy-allow-all-30096720']], 'subnet_ipam': [{'subnet_cidr': '157.64.62.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 01:10:58,563 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4cfef761-c661-476d-9cde-8b949ae673c7', 'name': 'ctest-vn-18656699', 'tenant_id': 'cf1d349069a8473ba7f05a890b075654', 'project_id': 'cf1d349069a8473ba7f05a890b075654', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['02e9e5b3-d332-4682-b116-f3908a8bee4d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54483214', 'ctest-vn-18656699'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54483214', 'ctest-policy-allow-all-30096720']], 'subnet_ipam': [{'subnet_cidr': '43.195.130.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 01:10:58,712 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-03-27 01:10:59,035 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-03-27 01:10:59,071 - DEBUG - Requesting: http://10.0.0.28:8082/domain/96c18f09-c3b7-4a37-924d-1c7fcea27226
2025-03-27 01:10:59,089 - DEBUG - Requesting: http://10.0.0.28:8082/project/cf1d3490-69a8-473b-a7f0-5a890b075654
2025-03-27 01:10:59,191 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5ff56803-f825-4da6-957b-1a551398b957
2025-03-27 01:10:59,208 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5ff56803-f825-4da6-957b-1a551398b957
2025-03-27 01:10:59,225 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/13977d1f-292b-42de-8b13-79b67b4addab
2025-03-27 01:10:59,237 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/13977d1f-292b-42de-8b13-79b67b4addab
2025-03-27 01:10:59,248 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/1971f116-9545-4b88-9a13-454fe4e13db8
2025-03-27 01:10:59,258 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 01:10:59,258 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5ff56803-f825-4da6-957b-1a551398b957
2025-03-27 01:10:59,272 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/13977d1f-292b-42de-8b13-79b67b4addab
2025-03-27 01:10:59,299 - INFO - Verified VN network id 8 for VN 5ff56803-f825-4da6-957b-1a551398b957
2025-03-27 01:10:59,300 - INFO - Verifications in API Server for VN ctest-vn-64889760 passed
2025-03-27 01:10:59,300 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5ff56803-f825-4da6-957b-1a551398b957
2025-03-27 01:10:59,313 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/13977d1f-292b-42de-8b13-79b67b4addab
2025-03-27 01:10:59,323 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/13977d1f-292b-42de-8b13-79b67b4addab
2025-03-27 01:10:59,333 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/1971f116-9545-4b88-9a13-454fe4e13db8
2025-03-27 01:10:59,350 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54483214:ctest-vn-64889760', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54483214', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6914547169154649510', 'uuid-lslong': '10771231886489991511'}, 'enable': 'true', 'created': '2025-03-27T01:10:56', 'last-modified': '2025-03-27T01:10:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.142138'}
2025-03-27 01:10:59,359 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 01:10:59,359 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64889760 passed
2025-03-27 01:10:59,360 - DEBUG - ====Verifying policy data for ctest-vn-64889760 in API_Server ======
2025-03-27 01:10:59,360 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-03-27 01:10:59,369 - DEBUG - Requesting: http://10.0.0.28:8082/domain/96c18f09-c3b7-4a37-924d-1c7fcea27226
2025-03-27 01:10:59,385 - DEBUG - Requesting: http://10.0.0.28:8082/project/cf1d3490-69a8-473b-a7f0-5a890b075654
2025-03-27 01:10:59,476 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5ff56803-f825-4da6-957b-1a551398b957
2025-03-27 01:10:59,494 - DEBUG - ==>Verifying data for policy with id: 2a8945b4-3dc7-474f-90ba-444e01c7d928, fqn: ['default-domain', 'ctest-TestBasicPolicy-54483214', 'ctest-policy-allow-all-30096720']
2025-03-27 01:10:59,494 - INFO - VN ctest-vn-64889760 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 01:10:59,494 - DEBUG - Verifying the vn in opserver
2025-03-27 01:10:59,494 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54483214:ctest-vn-64889760 virtual network link through opserver 10.0.0.28
2025-03-27 01:10:59,495 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-03-27 01:10:59,816 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-03-27 01:10:59,887 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54483214:ctest-vn-64889760', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54483214:ctest-vn-64889760?flat'}
2025-03-27 01:10:59,887 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54483214:ctest-vn-64889760 is found in opserver
2025-03-27 01:10:59,904 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 01:10:59,911 - DEBUG - VRF ids for VN ctest-vn-64889760: {}
2025-03-27 01:10:59,911 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-03-27 01:10:59,919 - DEBUG - Requesting: http://10.0.0.28:8082/domain/96c18f09-c3b7-4a37-924d-1c7fcea27226
2025-03-27 01:10:59,937 - DEBUG - Requesting: http://10.0.0.28:8082/project/cf1d3490-69a8-473b-a7f0-5a890b075654
2025-03-27 01:11:00,025 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/4cfef761-c661-476d-9cde-8b949ae673c7
2025-03-27 01:11:00,041 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/4cfef761-c661-476d-9cde-8b949ae673c7
2025-03-27 01:11:00,055 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/79c4520d-e103-4115-bb91-5bd70b2f262b
2025-03-27 01:11:00,065 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/79c4520d-e103-4115-bb91-5bd70b2f262b
2025-03-27 01:11:00,074 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/66814357-30aa-438c-8b86-d0c0a112fd85
2025-03-27 01:11:00,084 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 01:11:00,084 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/4cfef761-c661-476d-9cde-8b949ae673c7
2025-03-27 01:11:00,096 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/79c4520d-e103-4115-bb91-5bd70b2f262b
2025-03-27 01:11:00,117 - INFO - Verified VN network id 9 for VN 4cfef761-c661-476d-9cde-8b949ae673c7
2025-03-27 01:11:00,117 - INFO - Verifications in API Server for VN ctest-vn-18656699 passed
2025-03-27 01:11:00,118 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/4cfef761-c661-476d-9cde-8b949ae673c7
2025-03-27 01:11:00,130 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/79c4520d-e103-4115-bb91-5bd70b2f262b
2025-03-27 01:11:00,140 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/79c4520d-e103-4115-bb91-5bd70b2f262b
2025-03-27 01:11:00,149 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/66814357-30aa-438c-8b86-d0c0a112fd85
2025-03-27 01:11:00,165 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54483214:ctest-vn-18656699', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54483214', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5548143790279182189', 'uuid-lslong': '11303625585116738503'}, 'enable': 'true', 'created': '2025-03-27T01:10:57', 'last-modified': '2025-03-27T01:10:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.689898'}
2025-03-27 01:11:00,173 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 01:11:00,173 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18656699 passed
2025-03-27 01:11:00,174 - DEBUG - ====Verifying policy data for ctest-vn-18656699 in API_Server ======
2025-03-27 01:11:00,174 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-03-27 01:11:00,182 - DEBUG - Requesting: http://10.0.0.28:8082/domain/96c18f09-c3b7-4a37-924d-1c7fcea27226
2025-03-27 01:11:00,197 - DEBUG - Requesting: http://10.0.0.28:8082/project/cf1d3490-69a8-473b-a7f0-5a890b075654
2025-03-27 01:11:00,276 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/4cfef761-c661-476d-9cde-8b949ae673c7
2025-03-27 01:11:00,289 - DEBUG - ==>Verifying data for policy with id: 2a8945b4-3dc7-474f-90ba-444e01c7d928, fqn: ['default-domain', 'ctest-TestBasicPolicy-54483214', 'ctest-policy-allow-all-30096720']
2025-03-27 01:11:00,289 - INFO - VN ctest-vn-18656699 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 01:11:00,289 - DEBUG - Verifying the vn in opserver
2025-03-27 01:11:00,290 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54483214:ctest-vn-18656699 virtual network link through opserver 10.0.0.28
2025-03-27 01:11:00,290 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-03-27 01:11:00,303 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54483214:ctest-vn-18656699', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54483214:ctest-vn-18656699?flat'}
2025-03-27 01:11:00,303 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54483214:ctest-vn-18656699 is found in opserver
2025-03-27 01:11:00,321 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 01:11:00,329 - DEBUG - VRF ids for VN ctest-vn-18656699: {}
2025-03-27 01:11:00,406 - DEBUG - Services list from nova: [