2025-05-06 08:23:54,208 - INFO - Domain Default found not creating
2025-05-06 08:23:54,338 - INFO - Project ctest-TestBasicPolicy-69786117 not found, creating it
2025-05-06 08:23:54,757 - INFO - Created Project:ctest-TestBasicPolicy-69786117, ID : 3a6725b9-5afa-4189-b2a5-17f212b4a4fe
2025-05-06 08:23:56,696 - INFO - ================================================================================
2025-05-06 08:23:56,696 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-06 08:23:56,697 - 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-06 08:23:56,947 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with
2025-05-06 08:23:56,947 - INFO - Initial checks done. Running the testcase now
2025-05-06 08:23:56,947 - INFO -
2025-05-06 08:23:57,448 - DEBUG - Response for create_network : {'network': {'id': '3af3db25-bf1b-499a-9066-67cee0c09446', 'name': 'ctest-vn-84907974', 'tenant_id': '3a6725b95afa4189b2a517f212b4a4fe', 'project_id': '3a6725b95afa4189b2a517f212b4a4fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69786117', 'ctest-vn-84907974'], 'port_security_enabled': True, 'description': ''}}
2025-05-06 08:23:57,680 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0304dc3-8c2f-4778-9e32-587f2a61509b', 'name': '', 'tenant_id': '3a6725b95afa4189b2a517f212b4a4fe', 'network_id': '3af3db25-bf1b-499a-9066-67cee0c09446', 'ip_version': 4, 'cidr': '114.13.3.64/26', 'allocation_pools': [{'start': '114.13.3.66', 'end': '114.13.3.126'}], 'gateway_ip': '114.13.3.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.13.3.66', 'tags': [], 'project_id': '3a6725b95afa4189b2a517f212b4a4fe'}}
2025-05-06 08:23:57,696 - INFO - Created VN ctest-vn-84907974
2025-05-06 08:23:57,749 - DEBUG - VN ctest-vn-84907974 UUID is 3af3db25-bf1b-499a-9066-67cee0c09446
2025-05-06 08:23:58,064 - DEBUG - Response for create_network : {'network': {'id': 'a0b385e4-0fa3-41db-9e71-25fade9dcc1e', 'name': 'ctest-vn-72768198', 'tenant_id': '3a6725b95afa4189b2a517f212b4a4fe', 'project_id': '3a6725b95afa4189b2a517f212b4a4fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69786117', 'ctest-vn-72768198'], 'port_security_enabled': True, 'description': ''}}
2025-05-06 08:23:58,257 - DEBUG - Response for create_subnet : {'subnet': {'id': '7740a641-3755-4a84-8691-394a816a83e1', 'name': '', 'tenant_id': '3a6725b95afa4189b2a517f212b4a4fe', 'network_id': 'a0b385e4-0fa3-41db-9e71-25fade9dcc1e', 'ip_version': 4, 'cidr': '208.84.32.128/26', 'allocation_pools': [{'start': '208.84.32.130', 'end': '208.84.32.190'}], 'gateway_ip': '208.84.32.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.84.32.130', 'tags': [], 'project_id': '3a6725b95afa4189b2a517f212b4a4fe'}}
2025-05-06 08:23:58,273 - INFO - Created VN ctest-vn-72768198
2025-05-06 08:23:58,325 - DEBUG - VN ctest-vn-72768198 UUID is a0b385e4-0fa3-41db-9e71-25fade9dcc1e
2025-05-06 08:23:58,438 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69786117:ctest-vn-84907974, 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-69786117:ctest-vn-72768198, 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-06 08:23:58,727 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3af3db25-bf1b-499a-9066-67cee0c09446', 'name': 'ctest-vn-84907974', 'tenant_id': '3a6725b95afa4189b2a517f212b4a4fe', 'project_id': '3a6725b95afa4189b2a517f212b4a4fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0304dc3-8c2f-4778-9e32-587f2a61509b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69786117', 'ctest-vn-84907974'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69786117', 'ctest-policy-allow-all-55586847']], 'subnet_ipam': [{'subnet_cidr': '114.13.3.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-06 08:23:58,967 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a0b385e4-0fa3-41db-9e71-25fade9dcc1e', 'name': 'ctest-vn-72768198', 'tenant_id': '3a6725b95afa4189b2a517f212b4a4fe', 'project_id': '3a6725b95afa4189b2a517f212b4a4fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7740a641-3755-4a84-8691-394a816a83e1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69786117', 'ctest-vn-72768198'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69786117', 'ctest-policy-allow-all-55586847']], 'subnet_ipam': [{'subnet_cidr': '208.84.32.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-06 08:23:59,113 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-05-06 08:23:59,408 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-05-06 08:23:59,437 - DEBUG - Requesting: http://10.0.0.48:8082/domain/c7a36801-941b-4db1-b18e-9b3bfbbc3776
2025-05-06 08:23:59,450 - DEBUG - Requesting: http://10.0.0.48:8082/project/3a6725b9-5afa-4189-b2a5-17f212b4a4fe
2025-05-06 08:23:59,526 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/3af3db25-bf1b-499a-9066-67cee0c09446
2025-05-06 08:23:59,540 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/3af3db25-bf1b-499a-9066-67cee0c09446
2025-05-06 08:23:59,553 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5c15475b-d5d7-45dc-9b56-f693d5e979f0
2025-05-06 08:23:59,564 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5c15475b-d5d7-45dc-9b56-f693d5e979f0
2025-05-06 08:23:59,571 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/7557fda0-a3a7-4e06-b10c-80f6ef3405b2
2025-05-06 08:23:59,577 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-06 08:23:59,577 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/3af3db25-bf1b-499a-9066-67cee0c09446
2025-05-06 08:23:59,586 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5c15475b-d5d7-45dc-9b56-f693d5e979f0
2025-05-06 08:23:59,599 - INFO - Verified VN network id 8 for VN 3af3db25-bf1b-499a-9066-67cee0c09446
2025-05-06 08:23:59,599 - INFO - Verifications in API Server for VN ctest-vn-84907974 passed
2025-05-06 08:23:59,599 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/3af3db25-bf1b-499a-9066-67cee0c09446
2025-05-06 08:23:59,608 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5c15475b-d5d7-45dc-9b56-f693d5e979f0
2025-05-06 08:23:59,613 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5c15475b-d5d7-45dc-9b56-f693d5e979f0
2025-05-06 08:23:59,619 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/7557fda0-a3a7-4e06-b10c-80f6ef3405b2
2025-05-06 08:23:59,630 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69786117:ctest-vn-84907974', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69786117', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4247979828707019162', 'uuid-lslong': '10405118127317750854'}, 'enable': 'true', 'created': '2025-05-06T08:23:57', 'last-modified': '2025-05-06T08:23:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.924211'}
2025-05-06 08:23:59,636 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-06 08:23:59,637 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84907974 passed
2025-05-06 08:23:59,637 - DEBUG - ====Verifying policy data for ctest-vn-84907974 in API_Server ======
2025-05-06 08:23:59,637 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-05-06 08:23:59,641 - DEBUG - Requesting: http://10.0.0.48:8082/domain/c7a36801-941b-4db1-b18e-9b3bfbbc3776
2025-05-06 08:23:59,651 - DEBUG - Requesting: http://10.0.0.48:8082/project/3a6725b9-5afa-4189-b2a5-17f212b4a4fe
2025-05-06 08:23:59,730 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/3af3db25-bf1b-499a-9066-67cee0c09446
2025-05-06 08:23:59,741 - DEBUG - ==>Verifying data for policy with id: be1f1f1e-0d92-403d-9e61-be3e3d22c5d5, fqn: ['default-domain', 'ctest-TestBasicPolicy-69786117', 'ctest-policy-allow-all-55586847']
2025-05-06 08:23:59,741 - INFO - VN ctest-vn-84907974 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-06 08:23:59,741 - DEBUG - Verifying the vn in opserver
2025-05-06 08:23:59,741 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69786117:ctest-vn-84907974 virtual network link through opserver 10.0.0.48
2025-05-06 08:23:59,742 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-05-06 08:24:00,031 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-05-06 08:24:00,084 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69786117:ctest-vn-84907974', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69786117:ctest-vn-84907974?flat'}
2025-05-06 08:24:00,084 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69786117:ctest-vn-84907974 is found in opserver
2025-05-06 08:24:00,097 - DEBUG - Do not have enough data to verify VN in agent
2025-05-06 08:24:00,102 - DEBUG - VRF ids for VN ctest-vn-84907974: {}
2025-05-06 08:24:00,102 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-05-06 08:24:00,109 - DEBUG - Requesting: http://10.0.0.48:8082/domain/c7a36801-941b-4db1-b18e-9b3bfbbc3776
2025-05-06 08:24:00,122 - DEBUG - Requesting: http://10.0.0.48:8082/project/3a6725b9-5afa-4189-b2a5-17f212b4a4fe
2025-05-06 08:24:00,200 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a0b385e4-0fa3-41db-9e71-25fade9dcc1e
2025-05-06 08:24:00,212 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a0b385e4-0fa3-41db-9e71-25fade9dcc1e
2025-05-06 08:24:00,222 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/25e6770d-36db-4b65-995b-0903b16da67a
2025-05-06 08:24:00,230 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/25e6770d-36db-4b65-995b-0903b16da67a
2025-05-06 08:24:00,237 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/20d3402d-9151-4e26-b00c-69ce68f9f543
2025-05-06 08:24:00,243 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-06 08:24:00,243 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a0b385e4-0fa3-41db-9e71-25fade9dcc1e
2025-05-06 08:24:00,252 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/25e6770d-36db-4b65-995b-0903b16da67a
2025-05-06 08:24:00,265 - INFO - Verified VN network id 9 for VN a0b385e4-0fa3-41db-9e71-25fade9dcc1e
2025-05-06 08:24:00,265 - INFO - Verifications in API Server for VN ctest-vn-72768198 passed
2025-05-06 08:24:00,265 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a0b385e4-0fa3-41db-9e71-25fade9dcc1e
2025-05-06 08:24:00,274 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/25e6770d-36db-4b65-995b-0903b16da67a
2025-05-06 08:24:00,281 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/25e6770d-36db-4b65-995b-0903b16da67a
2025-05-06 08:24:00,288 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/20d3402d-9151-4e26-b00c-69ce68f9f543
2025-05-06 08:24:00,300 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69786117:ctest-vn-72768198', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69786117', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11579746281461072347', 'uuid-lslong': '11416948289767853086'}, 'enable': 'true', 'created': '2025-05-06T08:23:58', 'last-modified': '2025-05-06T08:23:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.354801'}
2025-05-06 08:24:00,307 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-06 08:24:00,307 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72768198 passed
2025-05-06 08:24:00,307 - DEBUG - ====Verifying policy data for ctest-vn-72768198 in API_Server ======
2025-05-06 08:24:00,307 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-05-06 08:24:00,312 - DEBUG - Requesting: http://10.0.0.48:8082/domain/c7a36801-941b-4db1-b18e-9b3bfbbc3776
2025-05-06 08:24:00,323 - DEBUG - Requesting: http://10.0.0.48:8082/project/3a6725b9-5afa-4189-b2a5-17f212b4a4fe
2025-05-06 08:24:00,397 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a0b385e4-0fa3-41db-9e71-25fade9dcc1e
2025-05-06 08:24:00,406 - DEBUG - ==>Verifying data for policy with id: be1f1f1e-0d92-403d-9e61-be3e3d22c5d5, fqn: ['default-domain', 'ctest-TestBasicPolicy-69786117', 'ctest-policy-allow-all-55586847']
2025-05-06 08:24:00,406 - INFO - VN ctest-vn-72768198 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-06 08:24:00,406 - DEBUG - Verifying the vn in opserver
2025-05-06 08:24:00,406 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69786117:ctest-vn-72768198 virtual network link through opserver 10.0.0.48
2025-05-06 08:24:00,406 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-05-06 08:24:00,416 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69786117:ctest-vn-72768198', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69786117:ctest-vn-72768198?flat'}
2025-05-06 08:24:00,416 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69786117:ctest-vn-72768198 is found in opserver
2025-05-06 08:24:00,427 - DEBUG - Do not have enough data to verify VN in agent
2025-05-06 08:24:00,431 - DEBUG - VRF ids for VN ctest-vn-72768198: {}
2025-05-06 08:24:00,492 - DEBUG - Services list from nova: [