2025-05-03 13:38:21,631 - INFO - Domain Default found not creating
2025-05-03 13:38:21,758 - INFO - Project ctest-TestBasicPolicy-47327993 not found, creating it
2025-05-03 13:38:22,194 - INFO - Created Project:ctest-TestBasicPolicy-47327993, ID : 1c886b39-83ac-4a2d-8faf-8cc3c01422db
2025-05-03 13:38:23,535 - INFO - ================================================================================
2025-05-03 13:38:23,535 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-03 13:38:23,535 - 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-05-03 13:38:23,783 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-05-03 13:38:23,783 - INFO - Initial checks done. Running the testcase now
2025-05-03 13:38:23,783 - INFO -
2025-05-03 13:38:24,315 - DEBUG - Response for create_network : {'network': {'id': 'a049f543-f21d-4c2c-bc62-f00329266ac4', 'name': 'ctest-vn-53645194', 'tenant_id': '1c886b3983ac4a2d8faf8cc3c01422db', 'project_id': '1c886b3983ac4a2d8faf8cc3c01422db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47327993', 'ctest-vn-53645194'], 'port_security_enabled': True, 'description': ''}}
2025-05-03 13:38:24,504 - DEBUG - Response for create_subnet : {'subnet': {'id': '995fc7b3-15db-4dfa-9266-f0999a4a3730', 'name': '', 'tenant_id': '1c886b3983ac4a2d8faf8cc3c01422db', 'network_id': 'a049f543-f21d-4c2c-bc62-f00329266ac4', 'ip_version': 4, 'cidr': '61.151.45.64/26', 'allocation_pools': [{'start': '61.151.45.66', 'end': '61.151.45.126'}], 'gateway_ip': '61.151.45.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.151.45.66', 'tags': [], 'project_id': '1c886b3983ac4a2d8faf8cc3c01422db'}}
2025-05-03 13:38:24,522 - INFO - Created VN ctest-vn-53645194
2025-05-03 13:38:24,578 - DEBUG - VN ctest-vn-53645194 UUID is a049f543-f21d-4c2c-bc62-f00329266ac4
2025-05-03 13:38:24,908 - DEBUG - Response for create_network : {'network': {'id': 'e7c287bd-fe2d-4809-af6e-07b6b560eb27', 'name': 'ctest-vn-94801469', 'tenant_id': '1c886b3983ac4a2d8faf8cc3c01422db', 'project_id': '1c886b3983ac4a2d8faf8cc3c01422db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47327993', 'ctest-vn-94801469'], 'port_security_enabled': True, 'description': ''}}
2025-05-03 13:38:25,049 - DEBUG - Response for create_subnet : {'subnet': {'id': '1fb7c290-7f75-43aa-8d3e-0ece7abfcf26', 'name': '', 'tenant_id': '1c886b3983ac4a2d8faf8cc3c01422db', 'network_id': 'e7c287bd-fe2d-4809-af6e-07b6b560eb27', 'ip_version': 4, 'cidr': '96.50.72.64/26', 'allocation_pools': [{'start': '96.50.72.66', 'end': '96.50.72.126'}], 'gateway_ip': '96.50.72.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.50.72.66', 'tags': [], 'project_id': '1c886b3983ac4a2d8faf8cc3c01422db'}}
2025-05-03 13:38:25,065 - INFO - Created VN ctest-vn-94801469
2025-05-03 13:38:25,118 - DEBUG - VN ctest-vn-94801469 UUID is e7c287bd-fe2d-4809-af6e-07b6b560eb27
2025-05-03 13:38:25,258 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47327993:ctest-vn-53645194, 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-47327993:ctest-vn-94801469, 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-05-03 13:38:25,567 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a049f543-f21d-4c2c-bc62-f00329266ac4', 'name': 'ctest-vn-53645194', 'tenant_id': '1c886b3983ac4a2d8faf8cc3c01422db', 'project_id': '1c886b3983ac4a2d8faf8cc3c01422db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['995fc7b3-15db-4dfa-9266-f0999a4a3730'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47327993', 'ctest-vn-53645194'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47327993', 'ctest-policy-allow-all-25929214']], 'subnet_ipam': [{'subnet_cidr': '61.151.45.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-03 13:38:25,790 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e7c287bd-fe2d-4809-af6e-07b6b560eb27', 'name': 'ctest-vn-94801469', 'tenant_id': '1c886b3983ac4a2d8faf8cc3c01422db', 'project_id': '1c886b3983ac4a2d8faf8cc3c01422db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1fb7c290-7f75-43aa-8d3e-0ece7abfcf26'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47327993', 'ctest-vn-94801469'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47327993', 'ctest-policy-allow-all-25929214']], 'subnet_ipam': [{'subnet_cidr': '96.50.72.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-03 13:38:25,966 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-03 13:38:26,259 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-03 13:38:26,284 - DEBUG - Requesting: http://10.0.0.254:8082/domain/60f41028-1246-4228-8ee4-3244a52d2350
2025-05-03 13:38:26,296 - DEBUG - Requesting: http://10.0.0.254:8082/project/1c886b39-83ac-4a2d-8faf-8cc3c01422db
2025-05-03 13:38:26,369 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a049f543-f21d-4c2c-bc62-f00329266ac4
2025-05-03 13:38:26,379 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a049f543-f21d-4c2c-bc62-f00329266ac4
2025-05-03 13:38:26,388 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a8e8f740-a64d-4400-a3aa-258f77c94025
2025-05-03 13:38:26,394 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a8e8f740-a64d-4400-a3aa-258f77c94025
2025-05-03 13:38:26,400 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/37161db6-1478-45bc-adeb-dbfa946a52a1
2025-05-03 13:38:26,405 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-03 13:38:26,405 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a049f543-f21d-4c2c-bc62-f00329266ac4
2025-05-03 13:38:26,413 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a8e8f740-a64d-4400-a3aa-258f77c94025
2025-05-03 13:38:26,427 - INFO - Verified VN network id 8 for VN a049f543-f21d-4c2c-bc62-f00329266ac4
2025-05-03 13:38:26,427 - INFO - Verifications in API Server for VN ctest-vn-53645194 passed
2025-05-03 13:38:26,427 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a049f543-f21d-4c2c-bc62-f00329266ac4
2025-05-03 13:38:26,435 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a8e8f740-a64d-4400-a3aa-258f77c94025
2025-05-03 13:38:26,441 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a8e8f740-a64d-4400-a3aa-258f77c94025
2025-05-03 13:38:26,446 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/37161db6-1478-45bc-adeb-dbfa946a52a1
2025-05-03 13:38:26,457 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47327993:ctest-vn-53645194', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47327993', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11550032391541967916', 'uuid-lslong': '13574676123214047940'}, 'enable': 'true', 'created': '2025-05-03T13:38:24', 'last-modified': '2025-05-03T13:38:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.920075'}
2025-05-03 13:38:26,463 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-03 13:38:26,463 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53645194 passed
2025-05-03 13:38:26,463 - DEBUG - ====Verifying policy data for ctest-vn-53645194 in API_Server ======
2025-05-03 13:38:26,463 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-03 13:38:26,468 - DEBUG - Requesting: http://10.0.0.254:8082/domain/60f41028-1246-4228-8ee4-3244a52d2350
2025-05-03 13:38:26,478 - DEBUG - Requesting: http://10.0.0.254:8082/project/1c886b39-83ac-4a2d-8faf-8cc3c01422db
2025-05-03 13:38:26,546 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a049f543-f21d-4c2c-bc62-f00329266ac4
2025-05-03 13:38:26,554 - DEBUG - ==>Verifying data for policy with id: 141517b7-daad-438f-8903-9884cbcd2902, fqn: ['default-domain', 'ctest-TestBasicPolicy-47327993', 'ctest-policy-allow-all-25929214']
2025-05-03 13:38:26,554 - INFO - VN ctest-vn-53645194 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-03 13:38:26,555 - DEBUG - Verifying the vn in opserver
2025-05-03 13:38:26,555 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47327993:ctest-vn-53645194 virtual network link through opserver 10.0.0.254
2025-05-03 13:38:26,555 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-03 13:38:26,841 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-03 13:38:26,886 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47327993:ctest-vn-53645194', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47327993:ctest-vn-53645194?flat'}
2025-05-03 13:38:26,886 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47327993:ctest-vn-53645194 is found in opserver
2025-05-03 13:38:26,896 - DEBUG - Do not have enough data to verify VN in agent
2025-05-03 13:38:26,901 - DEBUG - VRF ids for VN ctest-vn-53645194: {}
2025-05-03 13:38:26,901 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-03 13:38:26,905 - DEBUG - Requesting: http://10.0.0.254:8082/domain/60f41028-1246-4228-8ee4-3244a52d2350
2025-05-03 13:38:26,915 - DEBUG - Requesting: http://10.0.0.254:8082/project/1c886b39-83ac-4a2d-8faf-8cc3c01422db
2025-05-03 13:38:26,984 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7c287bd-fe2d-4809-af6e-07b6b560eb27
2025-05-03 13:38:26,995 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7c287bd-fe2d-4809-af6e-07b6b560eb27
2025-05-03 13:38:27,004 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/088af8f3-8bf2-468b-9ce9-3645c25a3092
2025-05-03 13:38:27,010 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/088af8f3-8bf2-468b-9ce9-3645c25a3092
2025-05-03 13:38:27,015 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7cff2afb-812b-4b55-80ad-235999de3e1b
2025-05-03 13:38:27,021 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-03 13:38:27,021 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7c287bd-fe2d-4809-af6e-07b6b560eb27
2025-05-03 13:38:27,029 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/088af8f3-8bf2-468b-9ce9-3645c25a3092
2025-05-03 13:38:27,041 - INFO - Verified VN network id 9 for VN e7c287bd-fe2d-4809-af6e-07b6b560eb27
2025-05-03 13:38:27,041 - INFO - Verifications in API Server for VN ctest-vn-94801469 passed
2025-05-03 13:38:27,041 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7c287bd-fe2d-4809-af6e-07b6b560eb27
2025-05-03 13:38:27,049 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/088af8f3-8bf2-468b-9ce9-3645c25a3092
2025-05-03 13:38:27,055 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/088af8f3-8bf2-468b-9ce9-3645c25a3092
2025-05-03 13:38:27,060 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7cff2afb-812b-4b55-80ad-235999de3e1b
2025-05-03 13:38:27,071 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47327993:ctest-vn-94801469', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47327993', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16700059618326169609', 'uuid-lslong': '12641049685384031015'}, 'enable': 'true', 'created': '2025-05-03T13:38:24', 'last-modified': '2025-05-03T13:38:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.299697'}
2025-05-03 13:38:27,077 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-03 13:38:27,077 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94801469 passed
2025-05-03 13:38:27,077 - DEBUG - ====Verifying policy data for ctest-vn-94801469 in API_Server ======
2025-05-03 13:38:27,077 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-03 13:38:27,082 - DEBUG - Requesting: http://10.0.0.254:8082/domain/60f41028-1246-4228-8ee4-3244a52d2350
2025-05-03 13:38:27,091 - DEBUG - Requesting: http://10.0.0.254:8082/project/1c886b39-83ac-4a2d-8faf-8cc3c01422db
2025-05-03 13:38:27,165 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7c287bd-fe2d-4809-af6e-07b6b560eb27
2025-05-03 13:38:27,175 - DEBUG - ==>Verifying data for policy with id: 141517b7-daad-438f-8903-9884cbcd2902, fqn: ['default-domain', 'ctest-TestBasicPolicy-47327993', 'ctest-policy-allow-all-25929214']
2025-05-03 13:38:27,175 - INFO - VN ctest-vn-94801469 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-03 13:38:27,175 - DEBUG - Verifying the vn in opserver
2025-05-03 13:38:27,176 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47327993:ctest-vn-94801469 virtual network link through opserver 10.0.0.254
2025-05-03 13:38:27,176 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-03 13:38:27,191 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47327993:ctest-vn-94801469', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47327993:ctest-vn-94801469?flat'}
2025-05-03 13:38:27,191 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47327993:ctest-vn-94801469 is found in opserver
2025-05-03 13:38:27,202 - DEBUG - Do not have enough data to verify VN in agent
2025-05-03 13:38:27,207 - DEBUG - VRF ids for VN ctest-vn-94801469: {}
2025-05-03 13:38:27,257 - DEBUG - Services list from nova: [