2025-11-18 01:06:05,962 - INFO - Domain Default found not creating
2025-11-18 01:06:06,139 - INFO - Project ctest-TestBasicPolicy-11878356 not found, creating it
2025-11-18 01:06:06,583 - INFO - Created Project:ctest-TestBasicPolicy-11878356, ID : 77e3ae5d-9c33-4214-a5fb-c32f8796e9ad
2025-11-18 01:06:08,075 - INFO - ================================================================================
2025-11-18 01:06:08,075 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-18 01:06:08,075 - 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-11-18 01:06:08,330 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-11-18 01:06:08,330 - INFO - Initial checks done. Running the testcase now
2025-11-18 01:06:08,330 - INFO -
2025-11-18 01:06:08,938 - DEBUG - Response for create_network : {'network': {'id': '47632f3b-94cb-47dd-8540-0622943c12ea', 'name': 'ctest-vn-84109211', 'tenant_id': '77e3ae5d9c334214a5fbc32f8796e9ad', 'project_id': '77e3ae5d9c334214a5fbc32f8796e9ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11878356', 'ctest-vn-84109211'], 'port_security_enabled': True, 'description': ''}}
2025-11-18 01:06:09,148 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c38b3259-a04c-4118-8979-7cd8147c3291', 'name': '', 'tenant_id': '77e3ae5d9c334214a5fbc32f8796e9ad', 'network_id': '47632f3b-94cb-47dd-8540-0622943c12ea', 'ip_version': 4, 'cidr': '162.213.4.0/26', 'allocation_pools': [{'start': '162.213.4.2', 'end': '162.213.4.62'}], 'gateway_ip': '162.213.4.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.213.4.2', 'tags': [], 'project_id': '77e3ae5d9c334214a5fbc32f8796e9ad'}}
2025-11-18 01:06:09,166 - INFO - Created VN ctest-vn-84109211
2025-11-18 01:06:09,216 - DEBUG - VN ctest-vn-84109211 UUID is 47632f3b-94cb-47dd-8540-0622943c12ea
2025-11-18 01:06:09,497 - DEBUG - Response for create_network : {'network': {'id': '754bf921-7217-4292-8abf-0996fbf3a3c2', 'name': 'ctest-vn-53995093', 'tenant_id': '77e3ae5d9c334214a5fbc32f8796e9ad', 'project_id': '77e3ae5d9c334214a5fbc32f8796e9ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11878356', 'ctest-vn-53995093'], 'port_security_enabled': True, 'description': ''}}
2025-11-18 01:06:09,708 - DEBUG - Response for create_subnet : {'subnet': {'id': '4449379c-d97a-47a2-be47-4ed326612d84', 'name': '', 'tenant_id': '77e3ae5d9c334214a5fbc32f8796e9ad', 'network_id': '754bf921-7217-4292-8abf-0996fbf3a3c2', 'ip_version': 4, 'cidr': '11.99.199.128/26', 'allocation_pools': [{'start': '11.99.199.130', 'end': '11.99.199.190'}], 'gateway_ip': '11.99.199.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.99.199.130', 'tags': [], 'project_id': '77e3ae5d9c334214a5fbc32f8796e9ad'}}
2025-11-18 01:06:09,726 - INFO - Created VN ctest-vn-53995093
2025-11-18 01:06:09,780 - DEBUG - VN ctest-vn-53995093 UUID is 754bf921-7217-4292-8abf-0996fbf3a3c2
2025-11-18 01:06:09,932 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11878356:ctest-vn-84109211, 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-11878356:ctest-vn-53995093, 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-11-18 01:06:10,210 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '47632f3b-94cb-47dd-8540-0622943c12ea', 'name': 'ctest-vn-84109211', 'tenant_id': '77e3ae5d9c334214a5fbc32f8796e9ad', 'project_id': '77e3ae5d9c334214a5fbc32f8796e9ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c38b3259-a04c-4118-8979-7cd8147c3291'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11878356', 'ctest-vn-84109211'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11878356', 'ctest-policy-allow-all-55188892']], 'subnet_ipam': [{'subnet_cidr': '162.213.4.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-18 01:06:10,474 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '754bf921-7217-4292-8abf-0996fbf3a3c2', 'name': 'ctest-vn-53995093', 'tenant_id': '77e3ae5d9c334214a5fbc32f8796e9ad', 'project_id': '77e3ae5d9c334214a5fbc32f8796e9ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4449379c-d97a-47a2-be47-4ed326612d84'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11878356', 'ctest-vn-53995093'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11878356', 'ctest-policy-allow-all-55188892']], 'subnet_ipam': [{'subnet_cidr': '11.99.199.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-18 01:06:10,616 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-18 01:06:10,911 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-18 01:06:10,941 - DEBUG - Requesting: http://10.0.0.50:8082/domain/91d8b101-eab5-48b5-a8a3-75a505650ca8
2025-11-18 01:06:10,955 - DEBUG - Requesting: http://10.0.0.50:8082/project/77e3ae5d-9c33-4214-a5fb-c32f8796e9ad
2025-11-18 01:06:11,026 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/47632f3b-94cb-47dd-8540-0622943c12ea
2025-11-18 01:06:11,036 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/47632f3b-94cb-47dd-8540-0622943c12ea
2025-11-18 01:06:11,044 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8e5c74f3-30e3-453c-855d-fec02e3946cb
2025-11-18 01:06:11,052 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8e5c74f3-30e3-453c-855d-fec02e3946cb
2025-11-18 01:06:11,058 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/650a3874-caf2-499c-9812-099fa048dda4
2025-11-18 01:06:11,064 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-18 01:06:11,064 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/47632f3b-94cb-47dd-8540-0622943c12ea
2025-11-18 01:06:11,073 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8e5c74f3-30e3-453c-855d-fec02e3946cb
2025-11-18 01:06:11,087 - INFO - Verified VN network id 11 for VN 47632f3b-94cb-47dd-8540-0622943c12ea
2025-11-18 01:06:11,087 - INFO - Verifications in API Server for VN ctest-vn-84109211 passed
2025-11-18 01:06:11,087 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/47632f3b-94cb-47dd-8540-0622943c12ea
2025-11-18 01:06:11,095 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8e5c74f3-30e3-453c-855d-fec02e3946cb
2025-11-18 01:06:11,101 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8e5c74f3-30e3-453c-855d-fec02e3946cb
2025-11-18 01:06:11,107 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/650a3874-caf2-499c-9812-099fa048dda4
2025-11-18 01:06:11,117 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11878356:ctest-vn-84109211', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11878356', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5144007132333164509', 'uuid-lslong': '9601681151139517162'}, 'enable': 'true', 'created': '2025-11-18T01:06:08', 'last-modified': '2025-11-18T01:06:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.924037'}
2025-11-18 01:06:11,123 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-18 01:06:11,123 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84109211 passed
2025-11-18 01:06:11,123 - DEBUG - ====Verifying policy data for ctest-vn-84109211 in API_Server ======
2025-11-18 01:06:11,123 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-18 01:06:11,129 - DEBUG - Requesting: http://10.0.0.50:8082/domain/91d8b101-eab5-48b5-a8a3-75a505650ca8
2025-11-18 01:06:11,140 - DEBUG - Requesting: http://10.0.0.50:8082/project/77e3ae5d-9c33-4214-a5fb-c32f8796e9ad
2025-11-18 01:06:11,207 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/47632f3b-94cb-47dd-8540-0622943c12ea
2025-11-18 01:06:11,217 - DEBUG - ==>Verifying data for policy with id: a0adacae-2e99-4700-9e50-02787b002340, fqn: ['default-domain', 'ctest-TestBasicPolicy-11878356', 'ctest-policy-allow-all-55188892']
2025-11-18 01:06:11,217 - INFO - VN ctest-vn-84109211 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-18 01:06:11,217 - DEBUG - Verifying the vn in opserver
2025-11-18 01:06:11,217 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11878356:ctest-vn-84109211 virtual network link through opserver 10.0.0.50
2025-11-18 01:06:11,217 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-18 01:06:11,519 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-18 01:06:11,576 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11878356:ctest-vn-84109211', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11878356:ctest-vn-84109211?flat'}
2025-11-18 01:06:11,576 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11878356:ctest-vn-84109211 is found in opserver
2025-11-18 01:06:11,585 - DEBUG - Do not have enough data to verify VN in agent
2025-11-18 01:06:11,590 - DEBUG - VRF ids for VN ctest-vn-84109211: {}
2025-11-18 01:06:11,590 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-18 01:06:11,595 - DEBUG - Requesting: http://10.0.0.50:8082/domain/91d8b101-eab5-48b5-a8a3-75a505650ca8
2025-11-18 01:06:11,604 - DEBUG - Requesting: http://10.0.0.50:8082/project/77e3ae5d-9c33-4214-a5fb-c32f8796e9ad
2025-11-18 01:06:11,672 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/754bf921-7217-4292-8abf-0996fbf3a3c2
2025-11-18 01:06:11,682 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/754bf921-7217-4292-8abf-0996fbf3a3c2
2025-11-18 01:06:11,690 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/babe0dce-6162-41df-be8c-b151e1e6864c
2025-11-18 01:06:11,697 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/babe0dce-6162-41df-be8c-b151e1e6864c
2025-11-18 01:06:11,703 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e2c56f6c-5cd4-44d8-9cae-6bddb3da8bea
2025-11-18 01:06:11,709 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-18 01:06:11,710 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/754bf921-7217-4292-8abf-0996fbf3a3c2
2025-11-18 01:06:11,717 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/babe0dce-6162-41df-be8c-b151e1e6864c
2025-11-18 01:06:11,730 - INFO - Verified VN network id 12 for VN 754bf921-7217-4292-8abf-0996fbf3a3c2
2025-11-18 01:06:11,730 - INFO - Verifications in API Server for VN ctest-vn-53995093 passed
2025-11-18 01:06:11,730 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/754bf921-7217-4292-8abf-0996fbf3a3c2
2025-11-18 01:06:11,738 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/babe0dce-6162-41df-be8c-b151e1e6864c
2025-11-18 01:06:11,745 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/babe0dce-6162-41df-be8c-b151e1e6864c
2025-11-18 01:06:11,751 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e2c56f6c-5cd4-44d8-9cae-6bddb3da8bea
2025-11-18 01:06:11,761 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11878356:ctest-vn-53995093', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11878356', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8452123047734231698', 'uuid-lslong': '9997720241862583234'}, 'enable': 'true', 'created': '2025-11-18T01:06:09', 'last-modified': '2025-11-18T01:06:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.351689'}
2025-11-18 01:06:11,766 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-18 01:06:11,766 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53995093 passed
2025-11-18 01:06:11,766 - DEBUG - ====Verifying policy data for ctest-vn-53995093 in API_Server ======
2025-11-18 01:06:11,766 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-18 01:06:11,772 - DEBUG - Requesting: http://10.0.0.50:8082/domain/91d8b101-eab5-48b5-a8a3-75a505650ca8
2025-11-18 01:06:11,781 - DEBUG - Requesting: http://10.0.0.50:8082/project/77e3ae5d-9c33-4214-a5fb-c32f8796e9ad
2025-11-18 01:06:11,849 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/754bf921-7217-4292-8abf-0996fbf3a3c2
2025-11-18 01:06:11,859 - DEBUG - ==>Verifying data for policy with id: a0adacae-2e99-4700-9e50-02787b002340, fqn: ['default-domain', 'ctest-TestBasicPolicy-11878356', 'ctest-policy-allow-all-55188892']
2025-11-18 01:06:11,859 - INFO - VN ctest-vn-53995093 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-18 01:06:11,859 - DEBUG - Verifying the vn in opserver
2025-11-18 01:06:11,859 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11878356:ctest-vn-53995093 virtual network link through opserver 10.0.0.50
2025-11-18 01:06:11,859 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-18 01:06:11,869 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11878356:ctest-vn-53995093', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11878356:ctest-vn-53995093?flat'}
2025-11-18 01:06:11,869 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11878356:ctest-vn-53995093 is found in opserver
2025-11-18 01:06:11,879 - DEBUG - Do not have enough data to verify VN in agent
2025-11-18 01:06:11,882 - DEBUG - VRF ids for VN ctest-vn-53995093: {}
2025-11-18 01:06:11,939 - DEBUG - Services list from nova: [