2025-07-17 11:14:09,964 - INFO - Domain Default found not creating
2025-07-17 11:14:10,098 - INFO - Project ctest-TestBasicPolicy-93271262 not found, creating it
2025-07-17 11:14:10,556 - INFO - Created Project:ctest-TestBasicPolicy-93271262, ID : 175bb728-bb99-4c42-8ae4-d4f25f8212ac
2025-07-17 11:14:12,019 - INFO - ================================================================================
2025-07-17 11:14:12,019 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-17 11:14:12,019 - 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-07-17 11:14:12,274 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-07-17 11:14:12,274 - INFO - Initial checks done. Running the testcase now
2025-07-17 11:14:12,274 - INFO -
2025-07-17 11:14:12,804 - DEBUG - Response for create_network : {'network': {'id': 'a19e7043-3b10-491d-be25-48699380435f', 'name': 'ctest-vn-54937573', 'tenant_id': '175bb728bb994c428ae4d4f25f8212ac', 'project_id': '175bb728bb994c428ae4d4f25f8212ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93271262', 'ctest-vn-54937573'], 'port_security_enabled': True, 'description': ''}}
2025-07-17 11:14:12,953 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f94528a-a93b-4ef8-a494-d163ab2b16d8', 'name': '', 'tenant_id': '175bb728bb994c428ae4d4f25f8212ac', 'network_id': 'a19e7043-3b10-491d-be25-48699380435f', 'ip_version': 4, 'cidr': '208.131.204.192/26', 'allocation_pools': [{'start': '208.131.204.194', 'end': '208.131.204.254'}], 'gateway_ip': '208.131.204.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.131.204.194', 'tags': [], 'project_id': '175bb728bb994c428ae4d4f25f8212ac'}}
2025-07-17 11:14:12,971 - INFO - Created VN ctest-vn-54937573
2025-07-17 11:14:13,024 - DEBUG - VN ctest-vn-54937573 UUID is a19e7043-3b10-491d-be25-48699380435f
2025-07-17 11:14:13,320 - DEBUG - Response for create_network : {'network': {'id': 'ba763dc3-3949-4e77-a850-e7aee6ceed5f', 'name': 'ctest-vn-95308551', 'tenant_id': '175bb728bb994c428ae4d4f25f8212ac', 'project_id': '175bb728bb994c428ae4d4f25f8212ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93271262', 'ctest-vn-95308551'], 'port_security_enabled': True, 'description': ''}}
2025-07-17 11:14:13,515 - DEBUG - Response for create_subnet : {'subnet': {'id': '48151d67-2b39-4fa8-bfa0-9c29d5f697c0', 'name': '', 'tenant_id': '175bb728bb994c428ae4d4f25f8212ac', 'network_id': 'ba763dc3-3949-4e77-a850-e7aee6ceed5f', 'ip_version': 4, 'cidr': '96.50.140.192/26', 'allocation_pools': [{'start': '96.50.140.194', 'end': '96.50.140.254'}], 'gateway_ip': '96.50.140.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.50.140.194', 'tags': [], 'project_id': '175bb728bb994c428ae4d4f25f8212ac'}}
2025-07-17 11:14:13,534 - INFO - Created VN ctest-vn-95308551
2025-07-17 11:14:13,588 - DEBUG - VN ctest-vn-95308551 UUID is ba763dc3-3949-4e77-a850-e7aee6ceed5f
2025-07-17 11:14:13,744 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-93271262:ctest-vn-54937573, 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-93271262:ctest-vn-95308551, 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-07-17 11:14:14,045 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a19e7043-3b10-491d-be25-48699380435f', 'name': 'ctest-vn-54937573', 'tenant_id': '175bb728bb994c428ae4d4f25f8212ac', 'project_id': '175bb728bb994c428ae4d4f25f8212ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7f94528a-a93b-4ef8-a494-d163ab2b16d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93271262', 'ctest-vn-54937573'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93271262', 'ctest-policy-allow-all-03110979']], 'subnet_ipam': [{'subnet_cidr': '208.131.204.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-17 11:14:14,330 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ba763dc3-3949-4e77-a850-e7aee6ceed5f', 'name': 'ctest-vn-95308551', 'tenant_id': '175bb728bb994c428ae4d4f25f8212ac', 'project_id': '175bb728bb994c428ae4d4f25f8212ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['48151d67-2b39-4fa8-bfa0-9c29d5f697c0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93271262', 'ctest-vn-95308551'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93271262', 'ctest-policy-allow-all-03110979']], 'subnet_ipam': [{'subnet_cidr': '96.50.140.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-17 11:14:14,476 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-17 11:14:14,786 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-17 11:14:14,823 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e3da70a3-5992-40c9-95d1-59a2fc60e754
2025-07-17 11:14:14,841 - DEBUG - Requesting: http://10.0.0.33:8082/project/175bb728-bb99-4c42-8ae4-d4f25f8212ac
2025-07-17 11:14:14,923 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a19e7043-3b10-491d-be25-48699380435f
2025-07-17 11:14:14,938 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a19e7043-3b10-491d-be25-48699380435f
2025-07-17 11:14:14,948 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c4b57e63-0d97-4955-8cf2-5d431b521ee6
2025-07-17 11:14:14,956 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c4b57e63-0d97-4955-8cf2-5d431b521ee6
2025-07-17 11:14:14,963 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8a328a11-11e9-407b-86e9-8627d650b000
2025-07-17 11:14:14,970 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-17 11:14:14,970 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a19e7043-3b10-491d-be25-48699380435f
2025-07-17 11:14:14,980 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c4b57e63-0d97-4955-8cf2-5d431b521ee6
2025-07-17 11:14:14,995 - INFO - Verified VN network id 8 for VN a19e7043-3b10-491d-be25-48699380435f
2025-07-17 11:14:14,995 - INFO - Verifications in API Server for VN ctest-vn-54937573 passed
2025-07-17 11:14:14,995 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a19e7043-3b10-491d-be25-48699380435f
2025-07-17 11:14:15,007 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c4b57e63-0d97-4955-8cf2-5d431b521ee6
2025-07-17 11:14:15,016 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c4b57e63-0d97-4955-8cf2-5d431b521ee6
2025-07-17 11:14:15,025 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8a328a11-11e9-407b-86e9-8627d650b000
2025-07-17 11:14:15,043 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93271262:ctest-vn-54937573', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93271262', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11645869120482724125', 'uuid-lslong': '13701437059628024671'}, 'enable': 'true', 'created': '2025-07-17T11:14:12', 'last-modified': '2025-07-17T11:14:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.018267'}
2025-07-17 11:14:15,051 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-17 11:14:15,051 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54937573 passed
2025-07-17 11:14:15,051 - DEBUG - ====Verifying policy data for ctest-vn-54937573 in API_Server ======
2025-07-17 11:14:15,051 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-17 11:14:15,058 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e3da70a3-5992-40c9-95d1-59a2fc60e754
2025-07-17 11:14:15,073 - DEBUG - Requesting: http://10.0.0.33:8082/project/175bb728-bb99-4c42-8ae4-d4f25f8212ac
2025-07-17 11:14:15,161 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a19e7043-3b10-491d-be25-48699380435f
2025-07-17 11:14:15,174 - DEBUG - ==>Verifying data for policy with id: 732fcc4e-927c-438b-894f-14c15baf1302, fqn: ['default-domain', 'ctest-TestBasicPolicy-93271262', 'ctest-policy-allow-all-03110979']
2025-07-17 11:14:15,174 - INFO - VN ctest-vn-54937573 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-17 11:14:15,174 - DEBUG - Verifying the vn in opserver
2025-07-17 11:14:15,174 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93271262:ctest-vn-54937573 virtual network link through opserver 10.0.0.33
2025-07-17 11:14:15,174 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-17 11:14:15,466 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-17 11:14:15,524 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93271262:ctest-vn-54937573', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93271262:ctest-vn-54937573?flat'}
2025-07-17 11:14:15,524 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93271262:ctest-vn-54937573 is found in opserver
2025-07-17 11:14:15,536 - DEBUG - Do not have enough data to verify VN in agent
2025-07-17 11:14:15,541 - DEBUG - VRF ids for VN ctest-vn-54937573: {}
2025-07-17 11:14:15,541 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-17 11:14:15,547 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e3da70a3-5992-40c9-95d1-59a2fc60e754
2025-07-17 11:14:15,559 - DEBUG - Requesting: http://10.0.0.33:8082/project/175bb728-bb99-4c42-8ae4-d4f25f8212ac
2025-07-17 11:14:15,643 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ba763dc3-3949-4e77-a850-e7aee6ceed5f
2025-07-17 11:14:15,657 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ba763dc3-3949-4e77-a850-e7aee6ceed5f
2025-07-17 11:14:15,668 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8c4293c3-9566-4c47-9434-39a13b468004
2025-07-17 11:14:15,675 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8c4293c3-9566-4c47-9434-39a13b468004
2025-07-17 11:14:15,682 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/13d99f03-578d-44e9-850f-35dadec3b642
2025-07-17 11:14:15,689 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-17 11:14:15,689 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ba763dc3-3949-4e77-a850-e7aee6ceed5f
2025-07-17 11:14:15,699 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8c4293c3-9566-4c47-9434-39a13b468004
2025-07-17 11:14:15,714 - INFO - Verified VN network id 9 for VN ba763dc3-3949-4e77-a850-e7aee6ceed5f
2025-07-17 11:14:15,714 - INFO - Verifications in API Server for VN ctest-vn-95308551 passed
2025-07-17 11:14:15,714 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ba763dc3-3949-4e77-a850-e7aee6ceed5f
2025-07-17 11:14:15,723 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8c4293c3-9566-4c47-9434-39a13b468004
2025-07-17 11:14:15,731 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8c4293c3-9566-4c47-9434-39a13b468004
2025-07-17 11:14:15,739 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/13d99f03-578d-44e9-850f-35dadec3b642
2025-07-17 11:14:15,751 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93271262:ctest-vn-95308551', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93271262', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13435994446995476087', 'uuid-lslong': '12128448534891392351'}, 'enable': 'true', 'created': '2025-07-17T11:14:13', 'last-modified': '2025-07-17T11:14:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.493398'}
2025-07-17 11:14:15,759 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-17 11:14:15,759 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95308551 passed
2025-07-17 11:14:15,759 - DEBUG - ====Verifying policy data for ctest-vn-95308551 in API_Server ======
2025-07-17 11:14:15,759 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-17 11:14:15,764 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e3da70a3-5992-40c9-95d1-59a2fc60e754
2025-07-17 11:14:15,776 - DEBUG - Requesting: http://10.0.0.33:8082/project/175bb728-bb99-4c42-8ae4-d4f25f8212ac
2025-07-17 11:14:15,849 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ba763dc3-3949-4e77-a850-e7aee6ceed5f
2025-07-17 11:14:15,859 - DEBUG - ==>Verifying data for policy with id: 732fcc4e-927c-438b-894f-14c15baf1302, fqn: ['default-domain', 'ctest-TestBasicPolicy-93271262', 'ctest-policy-allow-all-03110979']
2025-07-17 11:14:15,859 - INFO - VN ctest-vn-95308551 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-17 11:14:15,859 - DEBUG - Verifying the vn in opserver
2025-07-17 11:14:15,859 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93271262:ctest-vn-95308551 virtual network link through opserver 10.0.0.33
2025-07-17 11:14:15,859 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-17 11:14:15,872 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93271262:ctest-vn-95308551', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93271262:ctest-vn-95308551?flat'}
2025-07-17 11:14:15,872 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93271262:ctest-vn-95308551 is found in opserver
2025-07-17 11:14:15,883 - DEBUG - Do not have enough data to verify VN in agent
2025-07-17 11:14:15,888 - DEBUG - VRF ids for VN ctest-vn-95308551: {}
2025-07-17 11:14:15,946 - DEBUG - Services list from nova: [