2025-07-28 02:23:04,146 - INFO - Domain Default found not creating
2025-07-28 02:23:04,293 - INFO - Project ctest-TestBasicPolicy-80874159 not found, creating it
2025-07-28 02:23:04,767 - INFO - Created Project:ctest-TestBasicPolicy-80874159, ID : b8516365-4206-4b9d-b801-919ff03a0119
2025-07-28 02:23:06,194 - INFO - ================================================================================
2025-07-28 02:23:06,194 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-28 02:23:06,194 - 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-28 02:23:06,449 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.25': '0'}} with
2025-07-28 02:23:06,449 - INFO - Initial checks done. Running the testcase now
2025-07-28 02:23:06,449 - INFO -
2025-07-28 02:23:07,021 - DEBUG - Response for create_network : {'network': {'id': 'c1982105-601b-454d-bc8d-85889f471f6e', 'name': 'ctest-vn-56146715', 'tenant_id': 'b851636542064b9db801919ff03a0119', 'project_id': 'b851636542064b9db801919ff03a0119', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80874159', 'ctest-vn-56146715'], 'port_security_enabled': True, 'description': ''}}
2025-07-28 02:23:07,178 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e8839aaf-06f9-4512-9d6d-7dd0121bb90d', 'name': '', 'tenant_id': 'b851636542064b9db801919ff03a0119', 'network_id': 'c1982105-601b-454d-bc8d-85889f471f6e', 'ip_version': 4, 'cidr': '172.101.86.128/26', 'allocation_pools': [{'start': '172.101.86.130', 'end': '172.101.86.190'}], 'gateway_ip': '172.101.86.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.101.86.130', 'tags': [], 'project_id': 'b851636542064b9db801919ff03a0119'}}
2025-07-28 02:23:07,196 - INFO - Created VN ctest-vn-56146715
2025-07-28 02:23:07,251 - DEBUG - VN ctest-vn-56146715 UUID is c1982105-601b-454d-bc8d-85889f471f6e
2025-07-28 02:23:07,584 - DEBUG - Response for create_network : {'network': {'id': 'ce650ece-fded-49e0-910c-d06b057b892e', 'name': 'ctest-vn-63798631', 'tenant_id': 'b851636542064b9db801919ff03a0119', 'project_id': 'b851636542064b9db801919ff03a0119', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80874159', 'ctest-vn-63798631'], 'port_security_enabled': True, 'description': ''}}
2025-07-28 02:23:07,755 - DEBUG - Response for create_subnet : {'subnet': {'id': '4aaa1e50-5b59-481e-8a7d-930b70de49e9', 'name': '', 'tenant_id': 'b851636542064b9db801919ff03a0119', 'network_id': 'ce650ece-fded-49e0-910c-d06b057b892e', 'ip_version': 4, 'cidr': '4.152.211.0/26', 'allocation_pools': [{'start': '4.152.211.2', 'end': '4.152.211.62'}], 'gateway_ip': '4.152.211.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.152.211.2', 'tags': [], 'project_id': 'b851636542064b9db801919ff03a0119'}}
2025-07-28 02:23:07,772 - INFO - Created VN ctest-vn-63798631
2025-07-28 02:23:07,827 - DEBUG - VN ctest-vn-63798631 UUID is ce650ece-fded-49e0-910c-d06b057b892e
2025-07-28 02:23:07,979 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80874159:ctest-vn-56146715, 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-80874159:ctest-vn-63798631, 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-28 02:23:08,269 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c1982105-601b-454d-bc8d-85889f471f6e', 'name': 'ctest-vn-56146715', 'tenant_id': 'b851636542064b9db801919ff03a0119', 'project_id': 'b851636542064b9db801919ff03a0119', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e8839aaf-06f9-4512-9d6d-7dd0121bb90d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80874159', 'ctest-vn-56146715'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80874159', 'ctest-policy-allow-all-59840762']], 'subnet_ipam': [{'subnet_cidr': '172.101.86.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-28 02:23:08,504 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ce650ece-fded-49e0-910c-d06b057b892e', 'name': 'ctest-vn-63798631', 'tenant_id': 'b851636542064b9db801919ff03a0119', 'project_id': 'b851636542064b9db801919ff03a0119', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4aaa1e50-5b59-481e-8a7d-930b70de49e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80874159', 'ctest-vn-63798631'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80874159', 'ctest-policy-allow-all-59840762']], 'subnet_ipam': [{'subnet_cidr': '4.152.211.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-28 02:23:08,671 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-07-28 02:23:08,962 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-07-28 02:23:08,991 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ca933165-11b8-4c9b-ba4e-b4d0e2be4491
2025-07-28 02:23:09,005 - DEBUG - Requesting: http://10.0.0.27:8082/project/b8516365-4206-4b9d-b801-919ff03a0119
2025-07-28 02:23:09,081 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c1982105-601b-454d-bc8d-85889f471f6e
2025-07-28 02:23:09,092 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c1982105-601b-454d-bc8d-85889f471f6e
2025-07-28 02:23:09,103 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/69dd03b4-0888-48bd-aa8a-7162c5bf7a9b
2025-07-28 02:23:09,112 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/69dd03b4-0888-48bd-aa8a-7162c5bf7a9b
2025-07-28 02:23:09,119 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c687e77a-9db7-4e11-9b34-3bee48ac1983
2025-07-28 02:23:09,125 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-28 02:23:09,126 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c1982105-601b-454d-bc8d-85889f471f6e
2025-07-28 02:23:09,135 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/69dd03b4-0888-48bd-aa8a-7162c5bf7a9b
2025-07-28 02:23:09,150 - INFO - Verified VN network id 12 for VN c1982105-601b-454d-bc8d-85889f471f6e
2025-07-28 02:23:09,150 - INFO - Verifications in API Server for VN ctest-vn-56146715 passed
2025-07-28 02:23:09,150 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c1982105-601b-454d-bc8d-85889f471f6e
2025-07-28 02:23:09,160 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/69dd03b4-0888-48bd-aa8a-7162c5bf7a9b
2025-07-28 02:23:09,168 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/69dd03b4-0888-48bd-aa8a-7162c5bf7a9b
2025-07-28 02:23:09,175 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c687e77a-9db7-4e11-9b34-3bee48ac1983
2025-07-28 02:23:09,187 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80874159:ctest-vn-56146715', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80874159', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13949936152751064397', 'uuid-lslong': '13586662472680939374'}, 'enable': 'true', 'created': '2025-07-28T02:23:06', 'last-modified': '2025-07-28T02:23:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.939805'}
2025-07-28 02:23:09,194 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-28 02:23:09,194 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56146715 passed
2025-07-28 02:23:09,194 - DEBUG - ====Verifying policy data for ctest-vn-56146715 in API_Server ======
2025-07-28 02:23:09,195 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-07-28 02:23:09,201 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ca933165-11b8-4c9b-ba4e-b4d0e2be4491
2025-07-28 02:23:09,214 - DEBUG - Requesting: http://10.0.0.27:8082/project/b8516365-4206-4b9d-b801-919ff03a0119
2025-07-28 02:23:09,285 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c1982105-601b-454d-bc8d-85889f471f6e
2025-07-28 02:23:09,296 - DEBUG - ==>Verifying data for policy with id: c2ec53aa-cde9-43e1-9629-48332209d83d, fqn: ['default-domain', 'ctest-TestBasicPolicy-80874159', 'ctest-policy-allow-all-59840762']
2025-07-28 02:23:09,296 - INFO - VN ctest-vn-56146715 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-28 02:23:09,296 - DEBUG - Verifying the vn in opserver
2025-07-28 02:23:09,296 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80874159:ctest-vn-56146715 virtual network link through opserver 10.0.0.27
2025-07-28 02:23:09,296 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-07-28 02:23:09,586 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-07-28 02:23:09,642 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80874159:ctest-vn-56146715', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80874159:ctest-vn-56146715?flat'}
2025-07-28 02:23:09,642 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80874159:ctest-vn-56146715 is found in opserver
2025-07-28 02:23:09,654 - DEBUG - Do not have enough data to verify VN in agent
2025-07-28 02:23:09,660 - DEBUG - VRF ids for VN ctest-vn-56146715: {}
2025-07-28 02:23:09,660 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-07-28 02:23:09,667 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ca933165-11b8-4c9b-ba4e-b4d0e2be4491
2025-07-28 02:23:09,681 - DEBUG - Requesting: http://10.0.0.27:8082/project/b8516365-4206-4b9d-b801-919ff03a0119
2025-07-28 02:23:09,751 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ce650ece-fded-49e0-910c-d06b057b892e
2025-07-28 02:23:09,763 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ce650ece-fded-49e0-910c-d06b057b892e
2025-07-28 02:23:09,773 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a7d8616c-4a80-48ca-b79a-6f0cf9f9ce2f
2025-07-28 02:23:09,780 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a7d8616c-4a80-48ca-b79a-6f0cf9f9ce2f
2025-07-28 02:23:09,789 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/e5fdbc92-5dcd-4760-aa2a-f984d94689f5
2025-07-28 02:23:09,798 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-28 02:23:09,798 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ce650ece-fded-49e0-910c-d06b057b892e
2025-07-28 02:23:09,808 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a7d8616c-4a80-48ca-b79a-6f0cf9f9ce2f
2025-07-28 02:23:09,825 - INFO - Verified VN network id 13 for VN ce650ece-fded-49e0-910c-d06b057b892e
2025-07-28 02:23:09,825 - INFO - Verifications in API Server for VN ctest-vn-63798631 passed
2025-07-28 02:23:09,825 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ce650ece-fded-49e0-910c-d06b057b892e
2025-07-28 02:23:09,835 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a7d8616c-4a80-48ca-b79a-6f0cf9f9ce2f
2025-07-28 02:23:09,843 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a7d8616c-4a80-48ca-b79a-6f0cf9f9ce2f
2025-07-28 02:23:09,851 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/e5fdbc92-5dcd-4760-aa2a-f984d94689f5
2025-07-28 02:23:09,865 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80874159:ctest-vn-63798631', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80874159', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14872309626647169504', 'uuid-lslong': '10451957993292138798'}, 'enable': 'true', 'created': '2025-07-28T02:23:07', 'last-modified': '2025-07-28T02:23:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.385993'}
2025-07-28 02:23:09,871 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-28 02:23:09,871 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63798631 passed
2025-07-28 02:23:09,872 - DEBUG - ====Verifying policy data for ctest-vn-63798631 in API_Server ======
2025-07-28 02:23:09,872 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-07-28 02:23:09,878 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ca933165-11b8-4c9b-ba4e-b4d0e2be4491
2025-07-28 02:23:09,890 - DEBUG - Requesting: http://10.0.0.27:8082/project/b8516365-4206-4b9d-b801-919ff03a0119
2025-07-28 02:23:09,961 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ce650ece-fded-49e0-910c-d06b057b892e
2025-07-28 02:23:09,971 - DEBUG - ==>Verifying data for policy with id: c2ec53aa-cde9-43e1-9629-48332209d83d, fqn: ['default-domain', 'ctest-TestBasicPolicy-80874159', 'ctest-policy-allow-all-59840762']
2025-07-28 02:23:09,971 - INFO - VN ctest-vn-63798631 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-28 02:23:09,971 - DEBUG - Verifying the vn in opserver
2025-07-28 02:23:09,971 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80874159:ctest-vn-63798631 virtual network link through opserver 10.0.0.27
2025-07-28 02:23:09,971 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-07-28 02:23:09,982 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80874159:ctest-vn-63798631', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80874159:ctest-vn-63798631?flat'}
2025-07-28 02:23:09,982 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80874159:ctest-vn-63798631 is found in opserver
2025-07-28 02:23:09,994 - DEBUG - Do not have enough data to verify VN in agent
2025-07-28 02:23:10,001 - DEBUG - VRF ids for VN ctest-vn-63798631: {}
2025-07-28 02:23:10,063 - DEBUG - Services list from nova: [