2025-07-23 13:34:48,709 - INFO - Domain Default found not creating
2025-07-23 13:34:48,931 - INFO - Project ctest-TestBasicPolicy-33217984 not found, creating it
2025-07-23 13:34:49,464 - INFO - Created Project:ctest-TestBasicPolicy-33217984, ID : 1a9f3aa3-1ca2-4d62-92b4-ce915c42dc0f
2025-07-23 13:34:51,090 - INFO - ================================================================================
2025-07-23 13:34:51,091 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-23 13:34:51,091 - 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-23 13:34:51,367 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.209': '0'}} with
2025-07-23 13:34:51,368 - INFO - Initial checks done. Running the testcase now
2025-07-23 13:34:51,368 - INFO -
2025-07-23 13:34:51,991 - DEBUG - Response for create_network : {'network': {'id': 'e30af060-cb0c-486f-bc81-7cc9b023febc', 'name': 'ctest-vn-19904232', 'tenant_id': '1a9f3aa31ca24d6292b4ce915c42dc0f', 'project_id': '1a9f3aa31ca24d6292b4ce915c42dc0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33217984', 'ctest-vn-19904232'], 'port_security_enabled': True, 'description': ''}}
2025-07-23 13:34:52,200 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a79c97ec-0f4e-49e3-bea8-8db5d49b71b7', 'name': '', 'tenant_id': '1a9f3aa31ca24d6292b4ce915c42dc0f', 'network_id': 'e30af060-cb0c-486f-bc81-7cc9b023febc', 'ip_version': 4, 'cidr': '9.79.107.192/26', 'allocation_pools': [{'start': '9.79.107.194', 'end': '9.79.107.254'}], 'gateway_ip': '9.79.107.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.79.107.194', 'tags': [], 'project_id': '1a9f3aa31ca24d6292b4ce915c42dc0f'}}
2025-07-23 13:34:52,227 - INFO - Created VN ctest-vn-19904232
2025-07-23 13:34:52,282 - DEBUG - VN ctest-vn-19904232 UUID is e30af060-cb0c-486f-bc81-7cc9b023febc
2025-07-23 13:34:52,625 - DEBUG - Response for create_network : {'network': {'id': '46d7795a-61a8-4a9d-a97a-ecd3ada0e9ad', 'name': 'ctest-vn-95036589', 'tenant_id': '1a9f3aa31ca24d6292b4ce915c42dc0f', 'project_id': '1a9f3aa31ca24d6292b4ce915c42dc0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33217984', 'ctest-vn-95036589'], 'port_security_enabled': True, 'description': ''}}
2025-07-23 13:34:52,826 - DEBUG - Response for create_subnet : {'subnet': {'id': '4af2a147-f453-4072-9da7-ac3cf43fe205', 'name': '', 'tenant_id': '1a9f3aa31ca24d6292b4ce915c42dc0f', 'network_id': '46d7795a-61a8-4a9d-a97a-ecd3ada0e9ad', 'ip_version': 4, 'cidr': '145.224.105.0/26', 'allocation_pools': [{'start': '145.224.105.2', 'end': '145.224.105.62'}], 'gateway_ip': '145.224.105.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.224.105.2', 'tags': [], 'project_id': '1a9f3aa31ca24d6292b4ce915c42dc0f'}}
2025-07-23 13:34:52,848 - INFO - Created VN ctest-vn-95036589
2025-07-23 13:34:52,906 - DEBUG - VN ctest-vn-95036589 UUID is 46d7795a-61a8-4a9d-a97a-ecd3ada0e9ad
2025-07-23 13:34:53,046 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33217984:ctest-vn-19904232, 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-33217984:ctest-vn-95036589, 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-23 13:34:53,385 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e30af060-cb0c-486f-bc81-7cc9b023febc', 'name': 'ctest-vn-19904232', 'tenant_id': '1a9f3aa31ca24d6292b4ce915c42dc0f', 'project_id': '1a9f3aa31ca24d6292b4ce915c42dc0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a79c97ec-0f4e-49e3-bea8-8db5d49b71b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33217984', 'ctest-vn-19904232'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33217984', 'ctest-policy-allow-all-48662070']], 'subnet_ipam': [{'subnet_cidr': '9.79.107.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-23 13:34:53,699 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '46d7795a-61a8-4a9d-a97a-ecd3ada0e9ad', 'name': 'ctest-vn-95036589', 'tenant_id': '1a9f3aa31ca24d6292b4ce915c42dc0f', 'project_id': '1a9f3aa31ca24d6292b4ce915c42dc0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4af2a147-f453-4072-9da7-ac3cf43fe205'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33217984', 'ctest-vn-95036589'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33217984', 'ctest-policy-allow-all-48662070']], 'subnet_ipam': [{'subnet_cidr': '145.224.105.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-23 13:34:53,858 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-07-23 13:34:54,159 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-07-23 13:34:54,198 - DEBUG - Requesting: http://10.0.0.56:8082/domain/36d184c2-7a48-46c3-8ecf-f335133cfb16
2025-07-23 13:34:54,215 - DEBUG - Requesting: http://10.0.0.56:8082/project/1a9f3aa3-1ca2-4d62-92b4-ce915c42dc0f
2025-07-23 13:34:54,303 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/e30af060-cb0c-486f-bc81-7cc9b023febc
2025-07-23 13:34:54,317 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/e30af060-cb0c-486f-bc81-7cc9b023febc
2025-07-23 13:34:54,332 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/51f7ddca-58c2-45fa-8d0e-f24d252eb3e7
2025-07-23 13:34:54,344 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/51f7ddca-58c2-45fa-8d0e-f24d252eb3e7
2025-07-23 13:34:54,357 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/a5f31bcf-df1e-4501-a57e-59d8a3955ea9
2025-07-23 13:34:54,366 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-23 13:34:54,366 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/e30af060-cb0c-486f-bc81-7cc9b023febc
2025-07-23 13:34:54,379 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/51f7ddca-58c2-45fa-8d0e-f24d252eb3e7
2025-07-23 13:34:54,400 - INFO - Verified VN network id 11 for VN e30af060-cb0c-486f-bc81-7cc9b023febc
2025-07-23 13:34:54,400 - INFO - Verifications in API Server for VN ctest-vn-19904232 passed
2025-07-23 13:34:54,401 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/e30af060-cb0c-486f-bc81-7cc9b023febc
2025-07-23 13:34:54,414 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/51f7ddca-58c2-45fa-8d0e-f24d252eb3e7
2025-07-23 13:34:54,423 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/51f7ddca-58c2-45fa-8d0e-f24d252eb3e7
2025-07-23 13:34:54,433 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/a5f31bcf-df1e-4501-a57e-59d8a3955ea9
2025-07-23 13:34:54,452 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33217984:ctest-vn-19904232', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33217984', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16360152894890854511', 'uuid-lslong': '13583275156811546300'}, 'enable': 'true', 'created': '2025-07-23T13:34:51', 'last-modified': '2025-07-23T13:34:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.098753'}
2025-07-23 13:34:54,462 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-23 13:34:54,462 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19904232 passed
2025-07-23 13:34:54,462 - DEBUG - ====Verifying policy data for ctest-vn-19904232 in API_Server ======
2025-07-23 13:34:54,462 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-07-23 13:34:54,470 - DEBUG - Requesting: http://10.0.0.56:8082/domain/36d184c2-7a48-46c3-8ecf-f335133cfb16
2025-07-23 13:34:54,487 - DEBUG - Requesting: http://10.0.0.56:8082/project/1a9f3aa3-1ca2-4d62-92b4-ce915c42dc0f
2025-07-23 13:34:54,562 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/e30af060-cb0c-486f-bc81-7cc9b023febc
2025-07-23 13:34:54,574 - DEBUG - ==>Verifying data for policy with id: f60b105f-2adf-4384-b5a5-db849f15c46d, fqn: ['default-domain', 'ctest-TestBasicPolicy-33217984', 'ctest-policy-allow-all-48662070']
2025-07-23 13:34:54,574 - INFO - VN ctest-vn-19904232 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-23 13:34:54,574 - DEBUG - Verifying the vn in opserver
2025-07-23 13:34:54,574 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33217984:ctest-vn-19904232 virtual network link through opserver 10.0.0.56
2025-07-23 13:34:54,575 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-07-23 13:34:54,892 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-07-23 13:34:54,972 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33217984:ctest-vn-19904232', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33217984:ctest-vn-19904232?flat'}
2025-07-23 13:34:54,972 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33217984:ctest-vn-19904232 is found in opserver
2025-07-23 13:34:54,986 - DEBUG - Do not have enough data to verify VN in agent
2025-07-23 13:34:54,992 - DEBUG - VRF ids for VN ctest-vn-19904232: {}
2025-07-23 13:34:54,992 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-07-23 13:34:54,999 - DEBUG - Requesting: http://10.0.0.56:8082/domain/36d184c2-7a48-46c3-8ecf-f335133cfb16
2025-07-23 13:34:55,013 - DEBUG - Requesting: http://10.0.0.56:8082/project/1a9f3aa3-1ca2-4d62-92b4-ce915c42dc0f
2025-07-23 13:34:55,096 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/46d7795a-61a8-4a9d-a97a-ecd3ada0e9ad
2025-07-23 13:34:55,113 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/46d7795a-61a8-4a9d-a97a-ecd3ada0e9ad
2025-07-23 13:34:55,127 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/6e5d0a31-3749-4a02-a16a-cb5cd3e058a2
2025-07-23 13:34:55,139 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/6e5d0a31-3749-4a02-a16a-cb5cd3e058a2
2025-07-23 13:34:55,148 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/d788fbf5-dc17-42db-83ec-e1c3180c78f8
2025-07-23 13:34:55,156 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-23 13:34:55,156 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/46d7795a-61a8-4a9d-a97a-ecd3ada0e9ad
2025-07-23 13:34:55,168 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/6e5d0a31-3749-4a02-a16a-cb5cd3e058a2
2025-07-23 13:34:55,191 - INFO - Verified VN network id 12 for VN 46d7795a-61a8-4a9d-a97a-ecd3ada0e9ad
2025-07-23 13:34:55,192 - INFO - Verifications in API Server for VN ctest-vn-95036589 passed
2025-07-23 13:34:55,193 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/46d7795a-61a8-4a9d-a97a-ecd3ada0e9ad
2025-07-23 13:34:55,209 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/6e5d0a31-3749-4a02-a16a-cb5cd3e058a2
2025-07-23 13:34:55,221 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/6e5d0a31-3749-4a02-a16a-cb5cd3e058a2
2025-07-23 13:34:55,230 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/d788fbf5-dc17-42db-83ec-e1c3180c78f8
2025-07-23 13:34:55,245 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33217984:ctest-vn-95036589', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33217984', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5104682131740183197', 'uuid-lslong': '12212333733463779757'}, 'enable': 'true', 'created': '2025-07-23T13:34:52', 'last-modified': '2025-07-23T13:34:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.624091'}
2025-07-23 13:34:55,252 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-23 13:34:55,253 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95036589 passed
2025-07-23 13:34:55,253 - DEBUG - ====Verifying policy data for ctest-vn-95036589 in API_Server ======
2025-07-23 13:34:55,253 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-07-23 13:34:55,260 - DEBUG - Requesting: http://10.0.0.56:8082/domain/36d184c2-7a48-46c3-8ecf-f335133cfb16
2025-07-23 13:34:55,275 - DEBUG - Requesting: http://10.0.0.56:8082/project/1a9f3aa3-1ca2-4d62-92b4-ce915c42dc0f
2025-07-23 13:34:55,357 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/46d7795a-61a8-4a9d-a97a-ecd3ada0e9ad
2025-07-23 13:34:55,372 - DEBUG - ==>Verifying data for policy with id: f60b105f-2adf-4384-b5a5-db849f15c46d, fqn: ['default-domain', 'ctest-TestBasicPolicy-33217984', 'ctest-policy-allow-all-48662070']
2025-07-23 13:34:55,372 - INFO - VN ctest-vn-95036589 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-23 13:34:55,372 - DEBUG - Verifying the vn in opserver
2025-07-23 13:34:55,372 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33217984:ctest-vn-95036589 virtual network link through opserver 10.0.0.56
2025-07-23 13:34:55,372 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-07-23 13:34:55,386 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33217984:ctest-vn-95036589', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33217984:ctest-vn-95036589?flat'}
2025-07-23 13:34:55,386 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33217984:ctest-vn-95036589 is found in opserver
2025-07-23 13:34:55,399 - DEBUG - Do not have enough data to verify VN in agent
2025-07-23 13:34:55,405 - DEBUG - VRF ids for VN ctest-vn-95036589: {}
2025-07-23 13:34:55,483 - DEBUG - Services list from nova: [