2025-04-26 13:22:38,207 - INFO - Domain Default found not creating
2025-04-26 13:22:38,375 - INFO - Project ctest-TestBasicPolicy-82547447 not found, creating it
2025-04-26 13:22:38,877 - INFO - Created Project:ctest-TestBasicPolicy-82547447, ID : e77df100-9c0e-4c7d-b94a-9bf12a1189d1
2025-04-26 13:22:40,671 - INFO - ================================================================================
2025-04-26 13:22:40,671 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-26 13:22:40,671 - 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-04-26 13:22:40,950 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with
2025-04-26 13:22:40,950 - INFO - Initial checks done. Running the testcase now
2025-04-26 13:22:40,951 - INFO -
2025-04-26 13:22:41,563 - DEBUG - Response for create_network : {'network': {'id': '5de1d6b2-66a0-4c96-a96d-ae909aba4344', 'name': 'ctest-vn-67420510', 'tenant_id': 'e77df1009c0e4c7db94a9bf12a1189d1', 'project_id': 'e77df1009c0e4c7db94a9bf12a1189d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82547447', 'ctest-vn-67420510'], 'port_security_enabled': True, 'description': ''}}
2025-04-26 13:22:41,762 - DEBUG - Response for create_subnet : {'subnet': {'id': '70b5f831-10d8-4111-bf63-32246121cbc2', 'name': '', 'tenant_id': 'e77df1009c0e4c7db94a9bf12a1189d1', 'network_id': '5de1d6b2-66a0-4c96-a96d-ae909aba4344', 'ip_version': 4, 'cidr': '191.38.58.192/26', 'allocation_pools': [{'start': '191.38.58.194', 'end': '191.38.58.254'}], 'gateway_ip': '191.38.58.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.38.58.194', 'tags': [], 'project_id': 'e77df1009c0e4c7db94a9bf12a1189d1'}}
2025-04-26 13:22:41,786 - INFO - Created VN ctest-vn-67420510
2025-04-26 13:22:41,855 - DEBUG - VN ctest-vn-67420510 UUID is 5de1d6b2-66a0-4c96-a96d-ae909aba4344
2025-04-26 13:22:42,208 - DEBUG - Response for create_network : {'network': {'id': 'c31a6342-80d7-425d-a5aa-5cd48e02d8b6', 'name': 'ctest-vn-42314075', 'tenant_id': 'e77df1009c0e4c7db94a9bf12a1189d1', 'project_id': 'e77df1009c0e4c7db94a9bf12a1189d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82547447', 'ctest-vn-42314075'], 'port_security_enabled': True, 'description': ''}}
2025-04-26 13:22:42,432 - DEBUG - Response for create_subnet : {'subnet': {'id': '7a5c01f1-8b92-49f0-b42b-a8bb7ef0d6f9', 'name': '', 'tenant_id': 'e77df1009c0e4c7db94a9bf12a1189d1', 'network_id': 'c31a6342-80d7-425d-a5aa-5cd48e02d8b6', 'ip_version': 4, 'cidr': '206.46.18.128/26', 'allocation_pools': [{'start': '206.46.18.130', 'end': '206.46.18.190'}], 'gateway_ip': '206.46.18.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.46.18.130', 'tags': [], 'project_id': 'e77df1009c0e4c7db94a9bf12a1189d1'}}
2025-04-26 13:22:42,454 - INFO - Created VN ctest-vn-42314075
2025-04-26 13:22:42,515 - DEBUG - VN ctest-vn-42314075 UUID is c31a6342-80d7-425d-a5aa-5cd48e02d8b6
2025-04-26 13:22:42,639 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82547447:ctest-vn-67420510, 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-82547447:ctest-vn-42314075, 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-04-26 13:22:42,973 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5de1d6b2-66a0-4c96-a96d-ae909aba4344', 'name': 'ctest-vn-67420510', 'tenant_id': 'e77df1009c0e4c7db94a9bf12a1189d1', 'project_id': 'e77df1009c0e4c7db94a9bf12a1189d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['70b5f831-10d8-4111-bf63-32246121cbc2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82547447', 'ctest-vn-67420510'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82547447', 'ctest-policy-allow-all-63015068']], 'subnet_ipam': [{'subnet_cidr': '191.38.58.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-26 13:22:43,287 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c31a6342-80d7-425d-a5aa-5cd48e02d8b6', 'name': 'ctest-vn-42314075', 'tenant_id': 'e77df1009c0e4c7db94a9bf12a1189d1', 'project_id': 'e77df1009c0e4c7db94a9bf12a1189d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7a5c01f1-8b92-49f0-b42b-a8bb7ef0d6f9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82547447', 'ctest-vn-42314075'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82547447', 'ctest-policy-allow-all-63015068']], 'subnet_ipam': [{'subnet_cidr': '206.46.18.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-26 13:22:43,447 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-26 13:22:43,796 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-26 13:22:43,828 - DEBUG - Requesting: http://10.0.0.22:8082/domain/40732c79-fa35-4918-bda0-39f1b50fef14
2025-04-26 13:22:43,843 - DEBUG - Requesting: http://10.0.0.22:8082/project/e77df100-9c0e-4c7d-b94a-9bf12a1189d1
2025-04-26 13:22:43,931 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5de1d6b2-66a0-4c96-a96d-ae909aba4344
2025-04-26 13:22:43,944 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5de1d6b2-66a0-4c96-a96d-ae909aba4344
2025-04-26 13:22:43,955 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cabfb807-2df1-42a6-af6c-45eb5f23c2c5
2025-04-26 13:22:43,964 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cabfb807-2df1-42a6-af6c-45eb5f23c2c5
2025-04-26 13:22:43,972 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/40a87533-bb91-4533-8f54-530c47b4f7ce
2025-04-26 13:22:43,979 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-26 13:22:43,979 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5de1d6b2-66a0-4c96-a96d-ae909aba4344
2025-04-26 13:22:43,990 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cabfb807-2df1-42a6-af6c-45eb5f23c2c5
2025-04-26 13:22:44,007 - INFO - Verified VN network id 9 for VN 5de1d6b2-66a0-4c96-a96d-ae909aba4344
2025-04-26 13:22:44,007 - INFO - Verifications in API Server for VN ctest-vn-67420510 passed
2025-04-26 13:22:44,007 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5de1d6b2-66a0-4c96-a96d-ae909aba4344
2025-04-26 13:22:44,018 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cabfb807-2df1-42a6-af6c-45eb5f23c2c5
2025-04-26 13:22:44,026 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cabfb807-2df1-42a6-af6c-45eb5f23c2c5
2025-04-26 13:22:44,034 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/40a87533-bb91-4533-8f54-530c47b4f7ce
2025-04-26 13:22:44,052 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82547447:ctest-vn-67420510', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82547447', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6764924177001499798', 'uuid-lslong': '12208606100965704516'}, 'enable': 'true', 'created': '2025-04-26T13:22:41', 'last-modified': '2025-04-26T13:22:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.110433'}
2025-04-26 13:22:44,060 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-26 13:22:44,060 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67420510 passed
2025-04-26 13:22:44,060 - DEBUG - ====Verifying policy data for ctest-vn-67420510 in API_Server ======
2025-04-26 13:22:44,060 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-26 13:22:44,067 - DEBUG - Requesting: http://10.0.0.22:8082/domain/40732c79-fa35-4918-bda0-39f1b50fef14
2025-04-26 13:22:44,079 - DEBUG - Requesting: http://10.0.0.22:8082/project/e77df100-9c0e-4c7d-b94a-9bf12a1189d1
2025-04-26 13:22:44,152 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5de1d6b2-66a0-4c96-a96d-ae909aba4344
2025-04-26 13:22:44,163 - DEBUG - ==>Verifying data for policy with id: 0dfdc837-0edf-42e6-a486-a4f5ad0d89c3, fqn: ['default-domain', 'ctest-TestBasicPolicy-82547447', 'ctest-policy-allow-all-63015068']
2025-04-26 13:22:44,163 - INFO - VN ctest-vn-67420510 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-26 13:22:44,163 - DEBUG - Verifying the vn in opserver
2025-04-26 13:22:44,163 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82547447:ctest-vn-67420510 virtual network link through opserver 10.0.0.22
2025-04-26 13:22:44,164 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-26 13:22:44,496 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-26 13:22:44,884 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82547447:ctest-vn-67420510', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82547447:ctest-vn-67420510?flat'}
2025-04-26 13:22:44,884 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82547447:ctest-vn-67420510 is found in opserver
2025-04-26 13:22:44,897 - DEBUG - Do not have enough data to verify VN in agent
2025-04-26 13:22:44,905 - DEBUG - VRF ids for VN ctest-vn-67420510: {}
2025-04-26 13:22:44,905 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-26 13:22:44,913 - DEBUG - Requesting: http://10.0.0.22:8082/domain/40732c79-fa35-4918-bda0-39f1b50fef14
2025-04-26 13:22:44,925 - DEBUG - Requesting: http://10.0.0.22:8082/project/e77df100-9c0e-4c7d-b94a-9bf12a1189d1
2025-04-26 13:22:45,007 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c31a6342-80d7-425d-a5aa-5cd48e02d8b6
2025-04-26 13:22:45,023 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c31a6342-80d7-425d-a5aa-5cd48e02d8b6
2025-04-26 13:22:45,034 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/77e1f4c2-3937-4933-a84f-20b44619a0ef
2025-04-26 13:22:45,043 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/77e1f4c2-3937-4933-a84f-20b44619a0ef
2025-04-26 13:22:45,052 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d0c48ab7-3445-491a-9407-48bf672d268d
2025-04-26 13:22:45,062 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-26 13:22:45,062 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c31a6342-80d7-425d-a5aa-5cd48e02d8b6
2025-04-26 13:22:45,072 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/77e1f4c2-3937-4933-a84f-20b44619a0ef
2025-04-26 13:22:45,088 - INFO - Verified VN network id 10 for VN c31a6342-80d7-425d-a5aa-5cd48e02d8b6
2025-04-26 13:22:45,089 - INFO - Verifications in API Server for VN ctest-vn-42314075 passed
2025-04-26 13:22:45,089 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c31a6342-80d7-425d-a5aa-5cd48e02d8b6
2025-04-26 13:22:45,100 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/77e1f4c2-3937-4933-a84f-20b44619a0ef
2025-04-26 13:22:45,108 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/77e1f4c2-3937-4933-a84f-20b44619a0ef
2025-04-26 13:22:45,116 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d0c48ab7-3445-491a-9407-48bf672d268d
2025-04-26 13:22:45,130 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82547447:ctest-vn-42314075', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82547447', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14058658324071006813', 'uuid-lslong': '11937455830284294326'}, 'enable': 'true', 'created': '2025-04-26T13:22:42', 'last-modified': '2025-04-26T13:22:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.919455'}
2025-04-26 13:22:45,140 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-26 13:22:45,140 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42314075 passed
2025-04-26 13:22:45,140 - DEBUG - ====Verifying policy data for ctest-vn-42314075 in API_Server ======
2025-04-26 13:22:45,140 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-26 13:22:45,148 - DEBUG - Requesting: http://10.0.0.22:8082/domain/40732c79-fa35-4918-bda0-39f1b50fef14
2025-04-26 13:22:45,163 - DEBUG - Requesting: http://10.0.0.22:8082/project/e77df100-9c0e-4c7d-b94a-9bf12a1189d1
2025-04-26 13:22:45,253 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c31a6342-80d7-425d-a5aa-5cd48e02d8b6
2025-04-26 13:22:45,266 - DEBUG - ==>Verifying data for policy with id: 0dfdc837-0edf-42e6-a486-a4f5ad0d89c3, fqn: ['default-domain', 'ctest-TestBasicPolicy-82547447', 'ctest-policy-allow-all-63015068']
2025-04-26 13:22:45,266 - INFO - VN ctest-vn-42314075 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-26 13:22:45,266 - DEBUG - Verifying the vn in opserver
2025-04-26 13:22:45,266 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82547447:ctest-vn-42314075 virtual network link through opserver 10.0.0.22
2025-04-26 13:22:45,266 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-26 13:22:45,283 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82547447:ctest-vn-42314075', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82547447:ctest-vn-42314075?flat'}
2025-04-26 13:22:45,283 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82547447:ctest-vn-42314075 is found in opserver
2025-04-26 13:22:45,296 - DEBUG - Do not have enough data to verify VN in agent
2025-04-26 13:22:45,304 - DEBUG - VRF ids for VN ctest-vn-42314075: {}
2025-04-26 13:22:45,367 - DEBUG - Services list from nova: [