2025-04-15 03:48:41,328 - INFO - Domain Default found not creating
2025-04-15 03:48:41,486 - INFO - Project ctest-TestBasicPolicy-76720609 not found, creating it
2025-04-15 03:48:41,943 - INFO - Created Project:ctest-TestBasicPolicy-76720609, ID : 77a03740-7997-4a2e-9ac2-6ad45490aee6
2025-04-15 03:48:43,380 - INFO - ================================================================================
2025-04-15 03:48:43,380 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-15 03:48:43,380 - 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-15 03:48:43,640 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-04-15 03:48:43,640 - INFO - Initial checks done. Running the testcase now
2025-04-15 03:48:43,640 - INFO -
2025-04-15 03:48:44,168 - DEBUG - Response for create_network : {'network': {'id': 'a3fb7a57-affd-41a3-aba3-e179771c2817', 'name': 'ctest-vn-52088543', 'tenant_id': '77a0374079974a2e9ac26ad45490aee6', 'project_id': '77a0374079974a2e9ac26ad45490aee6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76720609', 'ctest-vn-52088543'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 03:48:44,370 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f4d249bb-e3ae-468d-ad27-7652ca0f35cd', 'name': '', 'tenant_id': '77a0374079974a2e9ac26ad45490aee6', 'network_id': 'a3fb7a57-affd-41a3-aba3-e179771c2817', 'ip_version': 4, 'cidr': '184.107.113.128/26', 'allocation_pools': [{'start': '184.107.113.130', 'end': '184.107.113.190'}], 'gateway_ip': '184.107.113.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.107.113.130', 'tags': [], 'project_id': '77a0374079974a2e9ac26ad45490aee6'}}
2025-04-15 03:48:44,387 - INFO - Created VN ctest-vn-52088543
2025-04-15 03:48:44,437 - DEBUG - VN ctest-vn-52088543 UUID is a3fb7a57-affd-41a3-aba3-e179771c2817
2025-04-15 03:48:44,734 - DEBUG - Response for create_network : {'network': {'id': 'a2db5e2e-4cce-4afb-942b-e2de75d245cf', 'name': 'ctest-vn-23359040', 'tenant_id': '77a0374079974a2e9ac26ad45490aee6', 'project_id': '77a0374079974a2e9ac26ad45490aee6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76720609', 'ctest-vn-23359040'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 03:48:44,906 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc4c7081-c6a8-41d8-a1ad-522e94a3ffe5', 'name': '', 'tenant_id': '77a0374079974a2e9ac26ad45490aee6', 'network_id': 'a2db5e2e-4cce-4afb-942b-e2de75d245cf', 'ip_version': 4, 'cidr': '49.80.127.64/26', 'allocation_pools': [{'start': '49.80.127.66', 'end': '49.80.127.126'}], 'gateway_ip': '49.80.127.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.80.127.66', 'tags': [], 'project_id': '77a0374079974a2e9ac26ad45490aee6'}}
2025-04-15 03:48:45,050 - INFO - Created VN ctest-vn-23359040
2025-04-15 03:48:45,101 - DEBUG - VN ctest-vn-23359040 UUID is a2db5e2e-4cce-4afb-942b-e2de75d245cf
2025-04-15 03:48:45,253 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76720609:ctest-vn-52088543, 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-76720609:ctest-vn-23359040, 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-15 03:48:45,553 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a3fb7a57-affd-41a3-aba3-e179771c2817', 'name': 'ctest-vn-52088543', 'tenant_id': '77a0374079974a2e9ac26ad45490aee6', 'project_id': '77a0374079974a2e9ac26ad45490aee6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f4d249bb-e3ae-468d-ad27-7652ca0f35cd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76720609', 'ctest-vn-52088543'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76720609', 'ctest-policy-allow-all-70342512']], 'subnet_ipam': [{'subnet_cidr': '184.107.113.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-15 03:48:45,774 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a2db5e2e-4cce-4afb-942b-e2de75d245cf', 'name': 'ctest-vn-23359040', 'tenant_id': '77a0374079974a2e9ac26ad45490aee6', 'project_id': '77a0374079974a2e9ac26ad45490aee6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cc4c7081-c6a8-41d8-a1ad-522e94a3ffe5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76720609', 'ctest-vn-23359040'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76720609', 'ctest-policy-allow-all-70342512']], 'subnet_ipam': [{'subnet_cidr': '49.80.127.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-15 03:48:45,933 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 03:48:46,228 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 03:48:46,254 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b960ea3b-d19b-445e-a4a5-bc2697b6a7f8
2025-04-15 03:48:46,267 - DEBUG - Requesting: http://10.0.0.65:8082/project/77a03740-7997-4a2e-9ac2-6ad45490aee6
2025-04-15 03:48:46,340 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a3fb7a57-affd-41a3-aba3-e179771c2817
2025-04-15 03:48:46,350 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a3fb7a57-affd-41a3-aba3-e179771c2817
2025-04-15 03:48:46,358 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/49030687-97e2-4a98-90a4-052467fdb170
2025-04-15 03:48:46,365 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/49030687-97e2-4a98-90a4-052467fdb170
2025-04-15 03:48:46,372 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/9cc22f1c-c5e6-4951-a733-e44f0a0f3c94
2025-04-15 03:48:46,378 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-15 03:48:46,378 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a3fb7a57-affd-41a3-aba3-e179771c2817
2025-04-15 03:48:46,386 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/49030687-97e2-4a98-90a4-052467fdb170
2025-04-15 03:48:46,399 - INFO - Verified VN network id 9 for VN a3fb7a57-affd-41a3-aba3-e179771c2817
2025-04-15 03:48:46,399 - INFO - Verifications in API Server for VN ctest-vn-52088543 passed
2025-04-15 03:48:46,400 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a3fb7a57-affd-41a3-aba3-e179771c2817
2025-04-15 03:48:46,408 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/49030687-97e2-4a98-90a4-052467fdb170
2025-04-15 03:48:46,415 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/49030687-97e2-4a98-90a4-052467fdb170
2025-04-15 03:48:46,421 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/9cc22f1c-c5e6-4951-a733-e44f0a0f3c94
2025-04-15 03:48:46,434 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76720609:ctest-vn-52088543', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76720609', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11816172564369981859', 'uuid-lslong': '12367976913495140375'}, 'enable': 'true', 'created': '2025-04-15T03:48:44', 'last-modified': '2025-04-15T03:48:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.904505'}
2025-04-15 03:48:46,441 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-15 03:48:46,441 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52088543 passed
2025-04-15 03:48:46,441 - DEBUG - ====Verifying policy data for ctest-vn-52088543 in API_Server ======
2025-04-15 03:48:46,441 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 03:48:46,447 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b960ea3b-d19b-445e-a4a5-bc2697b6a7f8
2025-04-15 03:48:46,460 - DEBUG - Requesting: http://10.0.0.65:8082/project/77a03740-7997-4a2e-9ac2-6ad45490aee6
2025-04-15 03:48:46,528 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a3fb7a57-affd-41a3-aba3-e179771c2817
2025-04-15 03:48:46,537 - DEBUG - ==>Verifying data for policy with id: 66b249b6-f854-4266-9fcf-065d74c48320, fqn: ['default-domain', 'ctest-TestBasicPolicy-76720609', 'ctest-policy-allow-all-70342512']
2025-04-15 03:48:46,537 - INFO - VN ctest-vn-52088543 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-15 03:48:46,537 - DEBUG - Verifying the vn in opserver
2025-04-15 03:48:46,537 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76720609:ctest-vn-52088543 virtual network link through opserver 10.0.0.65
2025-04-15 03:48:46,537 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-15 03:48:46,832 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-15 03:48:46,885 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76720609:ctest-vn-52088543', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76720609:ctest-vn-52088543?flat'}
2025-04-15 03:48:46,885 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76720609:ctest-vn-52088543 is found in opserver
2025-04-15 03:48:46,897 - DEBUG - Do not have enough data to verify VN in agent
2025-04-15 03:48:46,902 - DEBUG - VRF ids for VN ctest-vn-52088543: {}
2025-04-15 03:48:46,902 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 03:48:46,908 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b960ea3b-d19b-445e-a4a5-bc2697b6a7f8
2025-04-15 03:48:46,919 - DEBUG - Requesting: http://10.0.0.65:8082/project/77a03740-7997-4a2e-9ac2-6ad45490aee6
2025-04-15 03:48:46,986 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a2db5e2e-4cce-4afb-942b-e2de75d245cf
2025-04-15 03:48:46,997 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a2db5e2e-4cce-4afb-942b-e2de75d245cf
2025-04-15 03:48:47,006 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/52dcc1f2-cdc8-4c12-be86-30398316b29d
2025-04-15 03:48:47,013 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/52dcc1f2-cdc8-4c12-be86-30398316b29d
2025-04-15 03:48:47,019 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/b17ece6b-0e60-4feb-906a-11758d4d1a05
2025-04-15 03:48:47,025 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-15 03:48:47,025 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a2db5e2e-4cce-4afb-942b-e2de75d245cf
2025-04-15 03:48:47,033 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/52dcc1f2-cdc8-4c12-be86-30398316b29d
2025-04-15 03:48:47,045 - INFO - Verified VN network id 10 for VN a2db5e2e-4cce-4afb-942b-e2de75d245cf
2025-04-15 03:48:47,045 - INFO - Verifications in API Server for VN ctest-vn-23359040 passed
2025-04-15 03:48:47,045 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a2db5e2e-4cce-4afb-942b-e2de75d245cf
2025-04-15 03:48:47,053 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/52dcc1f2-cdc8-4c12-be86-30398316b29d
2025-04-15 03:48:47,059 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/52dcc1f2-cdc8-4c12-be86-30398316b29d
2025-04-15 03:48:47,064 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/b17ece6b-0e60-4feb-906a-11758d4d1a05
2025-04-15 03:48:47,077 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76720609:ctest-vn-23359040', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76720609', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11735076806994053883', 'uuid-lslong': '10676876786699224527'}, 'enable': 'true', 'created': '2025-04-15T03:48:44', 'last-modified': '2025-04-15T03:48:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.324454'}
2025-04-15 03:48:47,083 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-15 03:48:47,083 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23359040 passed
2025-04-15 03:48:47,083 - DEBUG - ====Verifying policy data for ctest-vn-23359040 in API_Server ======
2025-04-15 03:48:47,083 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 03:48:47,089 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b960ea3b-d19b-445e-a4a5-bc2697b6a7f8
2025-04-15 03:48:47,100 - DEBUG - Requesting: http://10.0.0.65:8082/project/77a03740-7997-4a2e-9ac2-6ad45490aee6
2025-04-15 03:48:47,181 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a2db5e2e-4cce-4afb-942b-e2de75d245cf
2025-04-15 03:48:47,190 - DEBUG - ==>Verifying data for policy with id: 66b249b6-f854-4266-9fcf-065d74c48320, fqn: ['default-domain', 'ctest-TestBasicPolicy-76720609', 'ctest-policy-allow-all-70342512']
2025-04-15 03:48:47,190 - INFO - VN ctest-vn-23359040 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-15 03:48:47,190 - DEBUG - Verifying the vn in opserver
2025-04-15 03:48:47,190 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76720609:ctest-vn-23359040 virtual network link through opserver 10.0.0.65
2025-04-15 03:48:47,190 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-15 03:48:47,201 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76720609:ctest-vn-23359040', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76720609:ctest-vn-23359040?flat'}
2025-04-15 03:48:47,201 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76720609:ctest-vn-23359040 is found in opserver
2025-04-15 03:48:47,212 - DEBUG - Do not have enough data to verify VN in agent
2025-04-15 03:48:47,218 - DEBUG - VRF ids for VN ctest-vn-23359040: {}
2025-04-15 03:48:47,275 - DEBUG - Services list from nova: [