2025-04-09 20:01:19,427 - INFO - Domain Default found not creating
2025-04-09 20:01:19,569 - INFO - Project ctest-TestBasicPolicy-80344815 not found, creating it
2025-04-09 20:01:20,048 - INFO - Created Project:ctest-TestBasicPolicy-80344815, ID : 232ec7f6-5e78-4e2e-b8ec-9288fccbd144
2025-04-09 20:01:21,436 - INFO - ================================================================================
2025-04-09 20:01:21,436 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-09 20:01:21,436 - 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-09 20:01:21,692 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with
2025-04-09 20:01:21,692 - INFO - Initial checks done. Running the testcase now
2025-04-09 20:01:21,692 - INFO -
2025-04-09 20:01:22,245 - DEBUG - Response for create_network : {'network': {'id': 'a543a782-a4f2-474e-8bd8-3f817206f46c', 'name': 'ctest-vn-76036225', 'tenant_id': '232ec7f65e784e2eb8ec9288fccbd144', 'project_id': '232ec7f65e784e2eb8ec9288fccbd144', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80344815', 'ctest-vn-76036225'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 20:01:22,439 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a47a4747-16c2-44e3-9c1c-f258aac0249c', 'name': '', 'tenant_id': '232ec7f65e784e2eb8ec9288fccbd144', 'network_id': 'a543a782-a4f2-474e-8bd8-3f817206f46c', 'ip_version': 4, 'cidr': '126.102.141.192/26', 'allocation_pools': [{'start': '126.102.141.194', 'end': '126.102.141.254'}], 'gateway_ip': '126.102.141.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.102.141.194', 'tags': [], 'project_id': '232ec7f65e784e2eb8ec9288fccbd144'}}
2025-04-09 20:01:22,457 - INFO - Created VN ctest-vn-76036225
2025-04-09 20:01:22,510 - DEBUG - VN ctest-vn-76036225 UUID is a543a782-a4f2-474e-8bd8-3f817206f46c
2025-04-09 20:01:22,794 - DEBUG - Response for create_network : {'network': {'id': 'c0afbb7d-3e42-4f26-8f01-3dccd9c50260', 'name': 'ctest-vn-15266408', 'tenant_id': '232ec7f65e784e2eb8ec9288fccbd144', 'project_id': '232ec7f65e784e2eb8ec9288fccbd144', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80344815', 'ctest-vn-15266408'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 20:01:23,008 - DEBUG - Response for create_subnet : {'subnet': {'id': '5aab82d5-e85d-4a70-a477-872ce5d9f01d', 'name': '', 'tenant_id': '232ec7f65e784e2eb8ec9288fccbd144', 'network_id': 'c0afbb7d-3e42-4f26-8f01-3dccd9c50260', 'ip_version': 4, 'cidr': '5.187.5.128/26', 'allocation_pools': [{'start': '5.187.5.130', 'end': '5.187.5.190'}], 'gateway_ip': '5.187.5.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.187.5.130', 'tags': [], 'project_id': '232ec7f65e784e2eb8ec9288fccbd144'}}
2025-04-09 20:01:23,025 - INFO - Created VN ctest-vn-15266408
2025-04-09 20:01:23,078 - DEBUG - VN ctest-vn-15266408 UUID is c0afbb7d-3e42-4f26-8f01-3dccd9c50260
2025-04-09 20:01:23,199 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-76036225, 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-80344815:ctest-vn-15266408, 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-09 20:01:23,501 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a543a782-a4f2-474e-8bd8-3f817206f46c', 'name': 'ctest-vn-76036225', 'tenant_id': '232ec7f65e784e2eb8ec9288fccbd144', 'project_id': '232ec7f65e784e2eb8ec9288fccbd144', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a47a4747-16c2-44e3-9c1c-f258aac0249c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80344815', 'ctest-vn-76036225'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80344815', 'ctest-policy-allow-all-32709927']], 'subnet_ipam': [{'subnet_cidr': '126.102.141.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 20:01:23,747 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c0afbb7d-3e42-4f26-8f01-3dccd9c50260', 'name': 'ctest-vn-15266408', 'tenant_id': '232ec7f65e784e2eb8ec9288fccbd144', 'project_id': '232ec7f65e784e2eb8ec9288fccbd144', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5aab82d5-e85d-4a70-a477-872ce5d9f01d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80344815', 'ctest-vn-15266408'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80344815', 'ctest-policy-allow-all-32709927']], 'subnet_ipam': [{'subnet_cidr': '5.187.5.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 20:01:23,906 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-04-09 20:01:24,204 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-04-09 20:01:24,234 - DEBUG - Requesting: http://10.0.0.48:8082/domain/3ecdef5d-50ba-4ffb-9c0d-06bdd779e454
2025-04-09 20:01:24,250 - DEBUG - Requesting: http://10.0.0.48:8082/project/232ec7f6-5e78-4e2e-b8ec-9288fccbd144
2025-04-09 20:01:24,320 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a543a782-a4f2-474e-8bd8-3f817206f46c
2025-04-09 20:01:24,330 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a543a782-a4f2-474e-8bd8-3f817206f46c
2025-04-09 20:01:24,342 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/68956959-c7fa-48eb-868c-2e80c70ed6c5
2025-04-09 20:01:24,350 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/68956959-c7fa-48eb-868c-2e80c70ed6c5
2025-04-09 20:01:24,358 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/1a18ab3a-a6d1-4728-95bc-ccb7b6b0c718
2025-04-09 20:01:24,365 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 20:01:24,365 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a543a782-a4f2-474e-8bd8-3f817206f46c
2025-04-09 20:01:24,374 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/68956959-c7fa-48eb-868c-2e80c70ed6c5
2025-04-09 20:01:24,388 - INFO - Verified VN network id 8 for VN a543a782-a4f2-474e-8bd8-3f817206f46c
2025-04-09 20:01:24,388 - INFO - Verifications in API Server for VN ctest-vn-76036225 passed
2025-04-09 20:01:24,388 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a543a782-a4f2-474e-8bd8-3f817206f46c
2025-04-09 20:01:24,397 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/68956959-c7fa-48eb-868c-2e80c70ed6c5
2025-04-09 20:01:24,404 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/68956959-c7fa-48eb-868c-2e80c70ed6c5
2025-04-09 20:01:24,413 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/1a18ab3a-a6d1-4728-95bc-ccb7b6b0c718
2025-04-09 20:01:24,425 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-76036225', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80344815', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11908546019252651854', 'uuid-lslong': '10076873991437874284'}, 'enable': 'true', 'created': '2025-04-09T20:01:22', 'last-modified': '2025-04-09T20:01:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.947942'}
2025-04-09 20:01:24,431 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 20:01:24,431 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76036225 passed
2025-04-09 20:01:24,431 - DEBUG - ====Verifying policy data for ctest-vn-76036225 in API_Server ======
2025-04-09 20:01:24,431 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-04-09 20:01:24,436 - DEBUG - Requesting: http://10.0.0.48:8082/domain/3ecdef5d-50ba-4ffb-9c0d-06bdd779e454
2025-04-09 20:01:24,447 - DEBUG - Requesting: http://10.0.0.48:8082/project/232ec7f6-5e78-4e2e-b8ec-9288fccbd144
2025-04-09 20:01:24,526 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a543a782-a4f2-474e-8bd8-3f817206f46c
2025-04-09 20:01:24,536 - DEBUG - ==>Verifying data for policy with id: 2afb6dee-6bd8-4119-adaa-1cdf927084b8, fqn: ['default-domain', 'ctest-TestBasicPolicy-80344815', 'ctest-policy-allow-all-32709927']
2025-04-09 20:01:24,536 - INFO - VN ctest-vn-76036225 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 20:01:24,536 - DEBUG - Verifying the vn in opserver
2025-04-09 20:01:24,536 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-76036225 virtual network link through opserver 10.0.0.48
2025-04-09 20:01:24,536 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-04-09 20:01:24,826 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-04-09 20:01:24,878 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-76036225', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-76036225?flat'}
2025-04-09 20:01:24,878 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-76036225 is found in opserver
2025-04-09 20:01:24,889 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 20:01:24,895 - DEBUG - VRF ids for VN ctest-vn-76036225: {}
2025-04-09 20:01:24,895 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-04-09 20:01:24,901 - DEBUG - Requesting: http://10.0.0.48:8082/domain/3ecdef5d-50ba-4ffb-9c0d-06bdd779e454
2025-04-09 20:01:24,912 - DEBUG - Requesting: http://10.0.0.48:8082/project/232ec7f6-5e78-4e2e-b8ec-9288fccbd144
2025-04-09 20:01:24,983 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c0afbb7d-3e42-4f26-8f01-3dccd9c50260
2025-04-09 20:01:24,995 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c0afbb7d-3e42-4f26-8f01-3dccd9c50260
2025-04-09 20:01:25,009 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/baa57e73-9fb6-440e-8730-35e91f302ce1
2025-04-09 20:01:25,016 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/baa57e73-9fb6-440e-8730-35e91f302ce1
2025-04-09 20:01:25,025 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/89e673b4-bc7d-4c28-9363-11eebf11f8a7
2025-04-09 20:01:25,033 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-09 20:01:25,033 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c0afbb7d-3e42-4f26-8f01-3dccd9c50260
2025-04-09 20:01:25,047 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/baa57e73-9fb6-440e-8730-35e91f302ce1
2025-04-09 20:01:25,067 - INFO - Verified VN network id 9 for VN c0afbb7d-3e42-4f26-8f01-3dccd9c50260
2025-04-09 20:01:25,067 - INFO - Verifications in API Server for VN ctest-vn-15266408 passed
2025-04-09 20:01:25,068 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c0afbb7d-3e42-4f26-8f01-3dccd9c50260
2025-04-09 20:01:25,082 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/baa57e73-9fb6-440e-8730-35e91f302ce1
2025-04-09 20:01:25,093 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/baa57e73-9fb6-440e-8730-35e91f302ce1
2025-04-09 20:01:25,103 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/89e673b4-bc7d-4c28-9363-11eebf11f8a7
2025-04-09 20:01:25,120 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-15266408', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80344815', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13884522322796367654', 'uuid-lslong': '10304585372436595296'}, 'enable': 'true', 'created': '2025-04-09T20:01:22', 'last-modified': '2025-04-09T20:01:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.401846'}
2025-04-09 20:01:25,128 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-09 20:01:25,128 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15266408 passed
2025-04-09 20:01:25,128 - DEBUG - ====Verifying policy data for ctest-vn-15266408 in API_Server ======
2025-04-09 20:01:25,128 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-04-09 20:01:25,135 - DEBUG - Requesting: http://10.0.0.48:8082/domain/3ecdef5d-50ba-4ffb-9c0d-06bdd779e454
2025-04-09 20:01:25,147 - DEBUG - Requesting: http://10.0.0.48:8082/project/232ec7f6-5e78-4e2e-b8ec-9288fccbd144
2025-04-09 20:01:25,215 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c0afbb7d-3e42-4f26-8f01-3dccd9c50260
2025-04-09 20:01:25,225 - DEBUG - ==>Verifying data for policy with id: 2afb6dee-6bd8-4119-adaa-1cdf927084b8, fqn: ['default-domain', 'ctest-TestBasicPolicy-80344815', 'ctest-policy-allow-all-32709927']
2025-04-09 20:01:25,225 - INFO - VN ctest-vn-15266408 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 20:01:25,225 - DEBUG - Verifying the vn in opserver
2025-04-09 20:01:25,225 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-15266408 virtual network link through opserver 10.0.0.48
2025-04-09 20:01:25,225 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-04-09 20:01:25,235 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-15266408', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-15266408?flat'}
2025-04-09 20:01:25,236 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-15266408 is found in opserver
2025-04-09 20:01:25,247 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 20:01:25,252 - DEBUG - VRF ids for VN ctest-vn-15266408: {}
2025-04-09 20:01:25,309 - DEBUG - Services list from nova: [