2025-04-23 10:51:40,812 - INFO - Domain Default found not creating
2025-04-23 10:51:40,953 - INFO - Project ctest-TestBasicPolicy-79241656 not found, creating it
2025-04-23 10:51:41,424 - INFO - Created Project:ctest-TestBasicPolicy-79241656, ID : 29e3314e-b682-4e8a-8677-02d56da47128
2025-04-23 10:51:42,839 - INFO - ================================================================================
2025-04-23 10:51:42,839 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-23 10:51:42,839 - 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-04-23 10:51:43,099 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with
2025-04-23 10:51:43,099 - INFO - Initial checks done. Running the testcase now
2025-04-23 10:51:43,100 - INFO -
2025-04-23 10:51:43,774 - DEBUG - Response for create_network : {'network': {'id': 'bd55b27b-cbae-4f60-a4cf-6b4660bb95a8', 'name': 'ctest-vn-20866192', 'tenant_id': '29e3314eb6824e8a867702d56da47128', 'project_id': '29e3314eb6824e8a867702d56da47128', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79241656', 'ctest-vn-20866192'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 10:51:43,944 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e34ad07-7965-434d-b49d-b845c4df428d', 'name': '', 'tenant_id': '29e3314eb6824e8a867702d56da47128', 'network_id': 'bd55b27b-cbae-4f60-a4cf-6b4660bb95a8', 'ip_version': 4, 'cidr': '69.23.77.0/26', 'allocation_pools': [{'start': '69.23.77.2', 'end': '69.23.77.62'}], 'gateway_ip': '69.23.77.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.23.77.2', 'tags': [], 'project_id': '29e3314eb6824e8a867702d56da47128'}}
2025-04-23 10:51:43,963 - INFO - Created VN ctest-vn-20866192
2025-04-23 10:51:44,015 - DEBUG - VN ctest-vn-20866192 UUID is bd55b27b-cbae-4f60-a4cf-6b4660bb95a8
2025-04-23 10:51:44,330 - DEBUG - Response for create_network : {'network': {'id': 'b07f7c6f-bc6f-4fc8-aaf0-729585223e42', 'name': 'ctest-vn-48169064', 'tenant_id': '29e3314eb6824e8a867702d56da47128', 'project_id': '29e3314eb6824e8a867702d56da47128', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79241656', 'ctest-vn-48169064'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 10:51:44,543 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b44d147d-83b8-4a39-b748-aa422df18b5f', 'name': '', 'tenant_id': '29e3314eb6824e8a867702d56da47128', 'network_id': 'b07f7c6f-bc6f-4fc8-aaf0-729585223e42', 'ip_version': 4, 'cidr': '38.15.65.128/26', 'allocation_pools': [{'start': '38.15.65.130', 'end': '38.15.65.190'}], 'gateway_ip': '38.15.65.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.15.65.130', 'tags': [], 'project_id': '29e3314eb6824e8a867702d56da47128'}}
2025-04-23 10:51:44,560 - INFO - Created VN ctest-vn-48169064
2025-04-23 10:51:44,614 - DEBUG - VN ctest-vn-48169064 UUID is b07f7c6f-bc6f-4fc8-aaf0-729585223e42
2025-04-23 10:51:44,725 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79241656:ctest-vn-20866192, 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-79241656:ctest-vn-48169064, 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-04-23 10:51:45,008 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bd55b27b-cbae-4f60-a4cf-6b4660bb95a8', 'name': 'ctest-vn-20866192', 'tenant_id': '29e3314eb6824e8a867702d56da47128', 'project_id': '29e3314eb6824e8a867702d56da47128', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5e34ad07-7965-434d-b49d-b845c4df428d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79241656', 'ctest-vn-20866192'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79241656', 'ctest-policy-allow-all-26373386']], 'subnet_ipam': [{'subnet_cidr': '69.23.77.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 10:51:45,239 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b07f7c6f-bc6f-4fc8-aaf0-729585223e42', 'name': 'ctest-vn-48169064', 'tenant_id': '29e3314eb6824e8a867702d56da47128', 'project_id': '29e3314eb6824e8a867702d56da47128', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b44d147d-83b8-4a39-b748-aa422df18b5f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79241656', 'ctest-vn-48169064'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79241656', 'ctest-policy-allow-all-26373386']], 'subnet_ipam': [{'subnet_cidr': '38.15.65.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 10:51:45,387 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-04-23 10:51:45,698 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-04-23 10:51:45,731 - DEBUG - Requesting: http://10.0.0.49:8082/domain/9d6f5708-c3a2-4280-b8c9-d5275d0f5c09
2025-04-23 10:51:45,744 - DEBUG - Requesting: http://10.0.0.49:8082/project/29e3314e-b682-4e8a-8677-02d56da47128
2025-04-23 10:51:45,888 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/bd55b27b-cbae-4f60-a4cf-6b4660bb95a8
2025-04-23 10:51:45,931 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/bd55b27b-cbae-4f60-a4cf-6b4660bb95a8
2025-04-23 10:51:45,945 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e4388fcb-1203-4676-a6a1-8d7dfc506655
2025-04-23 10:51:45,957 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e4388fcb-1203-4676-a6a1-8d7dfc506655
2025-04-23 10:51:45,976 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/6a2b8b96-ee44-4fbf-b456-777ee6b64bae
2025-04-23 10:51:45,990 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 10:51:45,990 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/bd55b27b-cbae-4f60-a4cf-6b4660bb95a8
2025-04-23 10:51:46,006 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e4388fcb-1203-4676-a6a1-8d7dfc506655
2025-04-23 10:51:46,027 - INFO - Verified VN network id 9 for VN bd55b27b-cbae-4f60-a4cf-6b4660bb95a8
2025-04-23 10:51:46,027 - INFO - Verifications in API Server for VN ctest-vn-20866192 passed
2025-04-23 10:51:46,027 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/bd55b27b-cbae-4f60-a4cf-6b4660bb95a8
2025-04-23 10:51:46,050 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e4388fcb-1203-4676-a6a1-8d7dfc506655
2025-04-23 10:51:46,058 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e4388fcb-1203-4676-a6a1-8d7dfc506655
2025-04-23 10:51:46,066 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/6a2b8b96-ee44-4fbf-b456-777ee6b64bae
2025-04-23 10:51:46,081 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79241656:ctest-vn-20866192', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79241656', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13643006890956705632', 'uuid-lslong': '11875828692414076328'}, 'enable': 'true', 'created': '2025-04-23T10:51:43', 'last-modified': '2025-04-23T10:51:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.084152'}
2025-04-23 10:51:46,088 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 10:51:46,088 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20866192 passed
2025-04-23 10:51:46,089 - DEBUG - ====Verifying policy data for ctest-vn-20866192 in API_Server ======
2025-04-23 10:51:46,089 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-04-23 10:51:46,100 - DEBUG - Requesting: http://10.0.0.49:8082/domain/9d6f5708-c3a2-4280-b8c9-d5275d0f5c09
2025-04-23 10:51:46,121 - DEBUG - Requesting: http://10.0.0.49:8082/project/29e3314e-b682-4e8a-8677-02d56da47128
2025-04-23 10:51:46,212 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/bd55b27b-cbae-4f60-a4cf-6b4660bb95a8
2025-04-23 10:51:46,227 - DEBUG - ==>Verifying data for policy with id: 7d55d0d0-9906-433d-b203-d53d80dc1768, fqn: ['default-domain', 'ctest-TestBasicPolicy-79241656', 'ctest-policy-allow-all-26373386']
2025-04-23 10:51:46,227 - INFO - VN ctest-vn-20866192 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 10:51:46,227 - DEBUG - Verifying the vn in opserver
2025-04-23 10:51:46,227 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79241656:ctest-vn-20866192 virtual network link through opserver 10.0.0.49
2025-04-23 10:51:46,227 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-04-23 10:51:46,539 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-04-23 10:51:46,593 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79241656:ctest-vn-20866192', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79241656:ctest-vn-20866192?flat'}
2025-04-23 10:51:46,593 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79241656:ctest-vn-20866192 is found in opserver
2025-04-23 10:51:46,604 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 10:51:46,608 - DEBUG - VRF ids for VN ctest-vn-20866192: {}
2025-04-23 10:51:46,608 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-04-23 10:51:46,614 - DEBUG - Requesting: http://10.0.0.49:8082/domain/9d6f5708-c3a2-4280-b8c9-d5275d0f5c09
2025-04-23 10:51:46,625 - DEBUG - Requesting: http://10.0.0.49:8082/project/29e3314e-b682-4e8a-8677-02d56da47128
2025-04-23 10:51:46,696 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b07f7c6f-bc6f-4fc8-aaf0-729585223e42
2025-04-23 10:51:46,712 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b07f7c6f-bc6f-4fc8-aaf0-729585223e42
2025-04-23 10:51:46,721 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d54bddfb-0885-40be-aa16-79da7a2b9ef4
2025-04-23 10:51:46,728 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d54bddfb-0885-40be-aa16-79da7a2b9ef4
2025-04-23 10:51:46,734 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/168ed1a6-1086-4497-8587-d255f8eea9de
2025-04-23 10:51:46,740 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 10:51:46,740 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b07f7c6f-bc6f-4fc8-aaf0-729585223e42
2025-04-23 10:51:46,749 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d54bddfb-0885-40be-aa16-79da7a2b9ef4
2025-04-23 10:51:46,762 - INFO - Verified VN network id 10 for VN b07f7c6f-bc6f-4fc8-aaf0-729585223e42
2025-04-23 10:51:46,762 - INFO - Verifications in API Server for VN ctest-vn-48169064 passed
2025-04-23 10:51:46,762 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b07f7c6f-bc6f-4fc8-aaf0-729585223e42
2025-04-23 10:51:46,771 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d54bddfb-0885-40be-aa16-79da7a2b9ef4
2025-04-23 10:51:46,777 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d54bddfb-0885-40be-aa16-79da7a2b9ef4
2025-04-23 10:51:46,782 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/168ed1a6-1086-4497-8587-d255f8eea9de
2025-04-23 10:51:46,793 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79241656:ctest-vn-48169064', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79241656', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12718020692062195656', 'uuid-lslong': '12317470967367614018'}, 'enable': 'true', 'created': '2025-04-23T10:51:44', 'last-modified': '2025-04-23T10:51:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.575703'}
2025-04-23 10:51:46,799 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 10:51:46,799 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48169064 passed
2025-04-23 10:51:46,799 - DEBUG - ====Verifying policy data for ctest-vn-48169064 in API_Server ======
2025-04-23 10:51:46,799 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-04-23 10:51:46,804 - DEBUG - Requesting: http://10.0.0.49:8082/domain/9d6f5708-c3a2-4280-b8c9-d5275d0f5c09
2025-04-23 10:51:46,813 - DEBUG - Requesting: http://10.0.0.49:8082/project/29e3314e-b682-4e8a-8677-02d56da47128
2025-04-23 10:51:46,884 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b07f7c6f-bc6f-4fc8-aaf0-729585223e42
2025-04-23 10:51:46,893 - DEBUG - ==>Verifying data for policy with id: 7d55d0d0-9906-433d-b203-d53d80dc1768, fqn: ['default-domain', 'ctest-TestBasicPolicy-79241656', 'ctest-policy-allow-all-26373386']
2025-04-23 10:51:46,893 - INFO - VN ctest-vn-48169064 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 10:51:46,893 - DEBUG - Verifying the vn in opserver
2025-04-23 10:51:46,893 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79241656:ctest-vn-48169064 virtual network link through opserver 10.0.0.49
2025-04-23 10:51:46,893 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-04-23 10:51:46,904 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79241656:ctest-vn-48169064', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79241656:ctest-vn-48169064?flat'}
2025-04-23 10:51:46,905 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79241656:ctest-vn-48169064 is found in opserver
2025-04-23 10:51:46,915 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 10:51:46,919 - DEBUG - VRF ids for VN ctest-vn-48169064: {}
2025-04-23 10:51:46,971 - DEBUG - Services list from nova: [