2025-09-15 11:46:10,806 - INFO - Domain Default found not creating
2025-09-15 11:46:10,976 - INFO - Project ctest-TestBasicPolicy-34058696 not found, creating it
2025-09-15 11:46:11,680 - INFO - Created Project:ctest-TestBasicPolicy-34058696, ID : 337c268a-4586-426c-bb5f-0b7be8206569
2025-09-15 11:46:13,249 - INFO - ================================================================================
2025-09-15 11:46:13,249 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-15 11:46:13,249 - 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-09-15 11:46:13,502 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2025-09-15 11:46:13,502 - INFO - Initial checks done. Running the testcase now
2025-09-15 11:46:13,502 - INFO -
2025-09-15 11:46:14,038 - DEBUG - Response for create_network : {'network': {'id': 'bd001de7-c6c4-4cf7-8bfd-58b9d49e25db', 'name': 'ctest-vn-65562416', 'tenant_id': '337c268a4586426cbb5f0b7be8206569', 'project_id': '337c268a4586426cbb5f0b7be8206569', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34058696', 'ctest-vn-65562416'], 'port_security_enabled': True, 'description': ''}}
2025-09-15 11:46:14,205 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cfdf8968-fa7e-43ae-91c2-97d21647ddd7', 'name': '', 'tenant_id': '337c268a4586426cbb5f0b7be8206569', 'network_id': 'bd001de7-c6c4-4cf7-8bfd-58b9d49e25db', 'ip_version': 4, 'cidr': '18.138.207.0/26', 'allocation_pools': [{'start': '18.138.207.2', 'end': '18.138.207.62'}], 'gateway_ip': '18.138.207.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.138.207.2', 'tags': [], 'project_id': '337c268a4586426cbb5f0b7be8206569'}}
2025-09-15 11:46:14,228 - INFO - Created VN ctest-vn-65562416
2025-09-15 11:46:14,281 - DEBUG - VN ctest-vn-65562416 UUID is bd001de7-c6c4-4cf7-8bfd-58b9d49e25db
2025-09-15 11:46:14,564 - DEBUG - Response for create_network : {'network': {'id': 'f67716bf-bd45-4abc-81e2-42f9ae649496', 'name': 'ctest-vn-56586957', 'tenant_id': '337c268a4586426cbb5f0b7be8206569', 'project_id': '337c268a4586426cbb5f0b7be8206569', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34058696', 'ctest-vn-56586957'], 'port_security_enabled': True, 'description': ''}}
2025-09-15 11:46:14,755 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e28a419-48b3-4c19-ae5d-914c694058ff', 'name': '', 'tenant_id': '337c268a4586426cbb5f0b7be8206569', 'network_id': 'f67716bf-bd45-4abc-81e2-42f9ae649496', 'ip_version': 4, 'cidr': '205.229.130.0/26', 'allocation_pools': [{'start': '205.229.130.2', 'end': '205.229.130.62'}], 'gateway_ip': '205.229.130.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.229.130.2', 'tags': [], 'project_id': '337c268a4586426cbb5f0b7be8206569'}}
2025-09-15 11:46:14,771 - INFO - Created VN ctest-vn-56586957
2025-09-15 11:46:14,821 - DEBUG - VN ctest-vn-56586957 UUID is f67716bf-bd45-4abc-81e2-42f9ae649496
2025-09-15 11:46:14,935 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34058696:ctest-vn-65562416, 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-34058696:ctest-vn-56586957, 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-09-15 11:46:15,219 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bd001de7-c6c4-4cf7-8bfd-58b9d49e25db', 'name': 'ctest-vn-65562416', 'tenant_id': '337c268a4586426cbb5f0b7be8206569', 'project_id': '337c268a4586426cbb5f0b7be8206569', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cfdf8968-fa7e-43ae-91c2-97d21647ddd7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34058696', 'ctest-vn-65562416'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34058696', 'ctest-policy-allow-all-95488611']], 'subnet_ipam': [{'subnet_cidr': '18.138.207.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-15 11:46:15,437 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f67716bf-bd45-4abc-81e2-42f9ae649496', 'name': 'ctest-vn-56586957', 'tenant_id': '337c268a4586426cbb5f0b7be8206569', 'project_id': '337c268a4586426cbb5f0b7be8206569', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7e28a419-48b3-4c19-ae5d-914c694058ff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34058696', 'ctest-vn-56586957'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34058696', 'ctest-policy-allow-all-95488611']], 'subnet_ipam': [{'subnet_cidr': '205.229.130.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-15 11:46:15,605 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-15 11:46:15,903 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-15 11:46:15,932 - DEBUG - Requesting: http://10.0.0.38:8082/domain/32c5e2e0-3441-478a-b5fe-124d47d945e6
2025-09-15 11:46:15,943 - DEBUG - Requesting: http://10.0.0.38:8082/project/337c268a-4586-426c-bb5f-0b7be8206569
2025-09-15 11:46:16,010 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bd001de7-c6c4-4cf7-8bfd-58b9d49e25db
2025-09-15 11:46:16,022 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bd001de7-c6c4-4cf7-8bfd-58b9d49e25db
2025-09-15 11:46:16,033 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/11efae03-498b-43b7-bce1-70c31e14b901
2025-09-15 11:46:16,041 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/11efae03-498b-43b7-bce1-70c31e14b901
2025-09-15 11:46:16,047 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1f3c841e-3370-4f52-8349-08a7a012b67b
2025-09-15 11:46:16,053 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-15 11:46:16,053 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bd001de7-c6c4-4cf7-8bfd-58b9d49e25db
2025-09-15 11:46:16,063 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/11efae03-498b-43b7-bce1-70c31e14b901
2025-09-15 11:46:16,078 - INFO - Verified VN network id 11 for VN bd001de7-c6c4-4cf7-8bfd-58b9d49e25db
2025-09-15 11:46:16,078 - INFO - Verifications in API Server for VN ctest-vn-65562416 passed
2025-09-15 11:46:16,078 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bd001de7-c6c4-4cf7-8bfd-58b9d49e25db
2025-09-15 11:46:16,087 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/11efae03-498b-43b7-bce1-70c31e14b901
2025-09-15 11:46:16,094 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/11efae03-498b-43b7-bce1-70c31e14b901
2025-09-15 11:46:16,101 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1f3c841e-3370-4f52-8349-08a7a012b67b
2025-09-15 11:46:16,113 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34058696:ctest-vn-65562416', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34058696', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13618918154477784311', 'uuid-lslong': '10087316295539107291'}, 'enable': 'true', 'created': '2025-09-15T11:46:14', 'last-modified': '2025-09-15T11:46:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.916232'}
2025-09-15 11:46:16,119 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-15 11:46:16,119 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65562416 passed
2025-09-15 11:46:16,119 - DEBUG - ====Verifying policy data for ctest-vn-65562416 in API_Server ======
2025-09-15 11:46:16,119 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-15 11:46:16,125 - DEBUG - Requesting: http://10.0.0.38:8082/domain/32c5e2e0-3441-478a-b5fe-124d47d945e6
2025-09-15 11:46:16,138 - DEBUG - Requesting: http://10.0.0.38:8082/project/337c268a-4586-426c-bb5f-0b7be8206569
2025-09-15 11:46:16,207 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bd001de7-c6c4-4cf7-8bfd-58b9d49e25db
2025-09-15 11:46:16,220 - DEBUG - ==>Verifying data for policy with id: 2ba15717-2572-406d-bfc5-bc724dd540ec, fqn: ['default-domain', 'ctest-TestBasicPolicy-34058696', 'ctest-policy-allow-all-95488611']
2025-09-15 11:46:16,220 - INFO - VN ctest-vn-65562416 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-15 11:46:16,220 - DEBUG - Verifying the vn in opserver
2025-09-15 11:46:16,220 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34058696:ctest-vn-65562416 virtual network link through opserver 10.0.0.38
2025-09-15 11:46:16,221 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-15 11:46:16,512 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-15 11:46:16,559 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34058696:ctest-vn-65562416', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34058696:ctest-vn-65562416?flat'}
2025-09-15 11:46:16,559 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34058696:ctest-vn-65562416 is found in opserver
2025-09-15 11:46:16,568 - DEBUG - Do not have enough data to verify VN in agent
2025-09-15 11:46:16,572 - DEBUG - VRF ids for VN ctest-vn-65562416: {}
2025-09-15 11:46:16,572 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-15 11:46:16,577 - DEBUG - Requesting: http://10.0.0.38:8082/domain/32c5e2e0-3441-478a-b5fe-124d47d945e6
2025-09-15 11:46:16,587 - DEBUG - Requesting: http://10.0.0.38:8082/project/337c268a-4586-426c-bb5f-0b7be8206569
2025-09-15 11:46:16,654 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f67716bf-bd45-4abc-81e2-42f9ae649496
2025-09-15 11:46:16,669 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f67716bf-bd45-4abc-81e2-42f9ae649496
2025-09-15 11:46:16,680 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4046a633-0ae5-487d-a962-8a32dae36ce6
2025-09-15 11:46:16,687 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4046a633-0ae5-487d-a962-8a32dae36ce6
2025-09-15 11:46:16,693 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9ffec34f-9201-4f27-9a30-a75819f3e91e
2025-09-15 11:46:16,699 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-15 11:46:16,699 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f67716bf-bd45-4abc-81e2-42f9ae649496
2025-09-15 11:46:16,710 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4046a633-0ae5-487d-a962-8a32dae36ce6
2025-09-15 11:46:16,725 - INFO - Verified VN network id 12 for VN f67716bf-bd45-4abc-81e2-42f9ae649496
2025-09-15 11:46:16,725 - INFO - Verifications in API Server for VN ctest-vn-56586957 passed
2025-09-15 11:46:16,725 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f67716bf-bd45-4abc-81e2-42f9ae649496
2025-09-15 11:46:16,734 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4046a633-0ae5-487d-a962-8a32dae36ce6
2025-09-15 11:46:16,741 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4046a633-0ae5-487d-a962-8a32dae36ce6
2025-09-15 11:46:16,747 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9ffec34f-9201-4f27-9a30-a75819f3e91e
2025-09-15 11:46:16,760 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34058696:ctest-vn-56586957', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34058696', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17759688668328839868', 'uuid-lslong': '9359116615769429142'}, 'enable': 'true', 'created': '2025-09-15T11:46:14', 'last-modified': '2025-09-15T11:46:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.344623'}
2025-09-15 11:46:16,765 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-15 11:46:16,765 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56586957 passed
2025-09-15 11:46:16,765 - DEBUG - ====Verifying policy data for ctest-vn-56586957 in API_Server ======
2025-09-15 11:46:16,765 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-15 11:46:16,771 - DEBUG - Requesting: http://10.0.0.38:8082/domain/32c5e2e0-3441-478a-b5fe-124d47d945e6
2025-09-15 11:46:16,782 - DEBUG - Requesting: http://10.0.0.38:8082/project/337c268a-4586-426c-bb5f-0b7be8206569
2025-09-15 11:46:16,851 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f67716bf-bd45-4abc-81e2-42f9ae649496
2025-09-15 11:46:16,861 - DEBUG - ==>Verifying data for policy with id: 2ba15717-2572-406d-bfc5-bc724dd540ec, fqn: ['default-domain', 'ctest-TestBasicPolicy-34058696', 'ctest-policy-allow-all-95488611']
2025-09-15 11:46:16,861 - INFO - VN ctest-vn-56586957 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-15 11:46:16,861 - DEBUG - Verifying the vn in opserver
2025-09-15 11:46:16,861 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34058696:ctest-vn-56586957 virtual network link through opserver 10.0.0.38
2025-09-15 11:46:16,861 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-15 11:46:16,872 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34058696:ctest-vn-56586957', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34058696:ctest-vn-56586957?flat'}
2025-09-15 11:46:16,872 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34058696:ctest-vn-56586957 is found in opserver
2025-09-15 11:46:16,883 - DEBUG - Do not have enough data to verify VN in agent
2025-09-15 11:46:16,888 - DEBUG - VRF ids for VN ctest-vn-56586957: {}
2025-09-15 11:46:16,951 - DEBUG - Services list from nova: [