2025-03-24 02:17:04,996 - INFO - Domain Default found not creating
2025-03-24 02:17:05,136 - INFO - Project ctest-TestBasicPolicy-02132115 not found, creating it
2025-03-24 02:17:05,560 - INFO - Created Project:ctest-TestBasicPolicy-02132115, ID : d89c42b3-4cf8-47a0-a418-c883cfaec319
2025-03-24 02:17:06,972 - INFO - ================================================================================
2025-03-24 02:17:06,973 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-24 02:17:06,973 - 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-03-24 02:17:07,233 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.7': '0'}} with
2025-03-24 02:17:07,233 - INFO - Initial checks done. Running the testcase now
2025-03-24 02:17:07,233 - INFO -
2025-03-24 02:17:07,777 - DEBUG - Response for create_network : {'network': {'id': 'c79f3a5e-e198-4616-a5d8-36019b5e937b', 'name': 'ctest-vn-18381420', 'tenant_id': 'd89c42b34cf847a0a418c883cfaec319', 'project_id': 'd89c42b34cf847a0a418c883cfaec319', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02132115', 'ctest-vn-18381420'], 'port_security_enabled': True, 'description': ''}}
2025-03-24 02:17:07,988 - DEBUG - Response for create_subnet : {'subnet': {'id': '55cd0021-576e-4adf-b2a3-c9aa4742005d', 'name': '', 'tenant_id': 'd89c42b34cf847a0a418c883cfaec319', 'network_id': 'c79f3a5e-e198-4616-a5d8-36019b5e937b', 'ip_version': 4, 'cidr': '101.15.7.192/26', 'allocation_pools': [{'start': '101.15.7.194', 'end': '101.15.7.254'}], 'gateway_ip': '101.15.7.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.15.7.194', 'tags': [], 'project_id': 'd89c42b34cf847a0a418c883cfaec319'}}
2025-03-24 02:17:08,006 - INFO - Created VN ctest-vn-18381420
2025-03-24 02:17:08,059 - DEBUG - VN ctest-vn-18381420 UUID is c79f3a5e-e198-4616-a5d8-36019b5e937b
2025-03-24 02:17:08,339 - DEBUG - Response for create_network : {'network': {'id': '080badc1-c53c-4a7f-af7c-c78695f0dc81', 'name': 'ctest-vn-76211346', 'tenant_id': 'd89c42b34cf847a0a418c883cfaec319', 'project_id': 'd89c42b34cf847a0a418c883cfaec319', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02132115', 'ctest-vn-76211346'], 'port_security_enabled': True, 'description': ''}}
2025-03-24 02:17:08,520 - DEBUG - Response for create_subnet : {'subnet': {'id': '8fd06199-0de1-499f-8d78-88a23248707b', 'name': '', 'tenant_id': 'd89c42b34cf847a0a418c883cfaec319', 'network_id': '080badc1-c53c-4a7f-af7c-c78695f0dc81', 'ip_version': 4, 'cidr': '19.39.14.128/26', 'allocation_pools': [{'start': '19.39.14.130', 'end': '19.39.14.190'}], 'gateway_ip': '19.39.14.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.39.14.130', 'tags': [], 'project_id': 'd89c42b34cf847a0a418c883cfaec319'}}
2025-03-24 02:17:08,537 - INFO - Created VN ctest-vn-76211346
2025-03-24 02:17:08,587 - DEBUG - VN ctest-vn-76211346 UUID is 080badc1-c53c-4a7f-af7c-c78695f0dc81
2025-03-24 02:17:08,698 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02132115:ctest-vn-18381420, 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-02132115:ctest-vn-76211346, 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-03-24 02:17:08,985 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c79f3a5e-e198-4616-a5d8-36019b5e937b', 'name': 'ctest-vn-18381420', 'tenant_id': 'd89c42b34cf847a0a418c883cfaec319', 'project_id': 'd89c42b34cf847a0a418c883cfaec319', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['55cd0021-576e-4adf-b2a3-c9aa4742005d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02132115', 'ctest-vn-18381420'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02132115', 'ctest-policy-allow-all-86759143']], 'subnet_ipam': [{'subnet_cidr': '101.15.7.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-24 02:17:09,199 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '080badc1-c53c-4a7f-af7c-c78695f0dc81', 'name': 'ctest-vn-76211346', 'tenant_id': 'd89c42b34cf847a0a418c883cfaec319', 'project_id': 'd89c42b34cf847a0a418c883cfaec319', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8fd06199-0de1-499f-8d78-88a23248707b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02132115', 'ctest-vn-76211346'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02132115', 'ctest-policy-allow-all-86759143']], 'subnet_ipam': [{'subnet_cidr': '19.39.14.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-24 02:17:09,363 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-24 02:17:09,655 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-24 02:17:09,680 - DEBUG - Requesting: http://10.0.0.27:8082/domain/79b30645-0539-4daf-9ae9-b83a3811325a
2025-03-24 02:17:09,694 - DEBUG - Requesting: http://10.0.0.27:8082/project/d89c42b3-4cf8-47a0-a418-c883cfaec319
2025-03-24 02:17:09,762 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c79f3a5e-e198-4616-a5d8-36019b5e937b
2025-03-24 02:17:09,771 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c79f3a5e-e198-4616-a5d8-36019b5e937b
2025-03-24 02:17:09,778 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7ca856d0-97aa-4fc6-b267-c3f55fec001f
2025-03-24 02:17:09,785 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7ca856d0-97aa-4fc6-b267-c3f55fec001f
2025-03-24 02:17:09,792 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5687acee-94e3-4cbd-b61b-2dd99d5796af
2025-03-24 02:17:09,801 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-24 02:17:09,801 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c79f3a5e-e198-4616-a5d8-36019b5e937b
2025-03-24 02:17:09,809 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7ca856d0-97aa-4fc6-b267-c3f55fec001f
2025-03-24 02:17:09,819 - INFO - Verified VN network id 8 for VN c79f3a5e-e198-4616-a5d8-36019b5e937b
2025-03-24 02:17:09,819 - INFO - Verifications in API Server for VN ctest-vn-18381420 passed
2025-03-24 02:17:09,820 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c79f3a5e-e198-4616-a5d8-36019b5e937b
2025-03-24 02:17:09,830 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7ca856d0-97aa-4fc6-b267-c3f55fec001f
2025-03-24 02:17:09,836 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7ca856d0-97aa-4fc6-b267-c3f55fec001f
2025-03-24 02:17:09,841 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5687acee-94e3-4cbd-b61b-2dd99d5796af
2025-03-24 02:17:09,852 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02132115:ctest-vn-18381420', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02132115', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14384279914030843414', 'uuid-lslong': '11950360991757144955'}, 'enable': 'true', 'created': '2025-03-24T02:17:07', 'last-modified': '2025-03-24T02:17:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.885570'}
2025-03-24 02:17:09,858 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-24 02:17:09,858 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18381420 passed
2025-03-24 02:17:09,858 - DEBUG - ====Verifying policy data for ctest-vn-18381420 in API_Server ======
2025-03-24 02:17:09,859 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-24 02:17:09,864 - DEBUG - Requesting: http://10.0.0.27:8082/domain/79b30645-0539-4daf-9ae9-b83a3811325a
2025-03-24 02:17:09,875 - DEBUG - Requesting: http://10.0.0.27:8082/project/d89c42b3-4cf8-47a0-a418-c883cfaec319
2025-03-24 02:17:09,941 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c79f3a5e-e198-4616-a5d8-36019b5e937b
2025-03-24 02:17:09,950 - DEBUG - ==>Verifying data for policy with id: d3ec613e-d79d-4c01-9fee-c904f90cb90a, fqn: ['default-domain', 'ctest-TestBasicPolicy-02132115', 'ctest-policy-allow-all-86759143']
2025-03-24 02:17:09,950 - INFO - VN ctest-vn-18381420 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-24 02:17:09,951 - DEBUG - Verifying the vn in opserver
2025-03-24 02:17:09,951 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02132115:ctest-vn-18381420 virtual network link through opserver 10.0.0.27
2025-03-24 02:17:09,951 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-03-24 02:17:10,242 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-03-24 02:17:10,295 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02132115:ctest-vn-18381420', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02132115:ctest-vn-18381420?flat'}
2025-03-24 02:17:10,295 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02132115:ctest-vn-18381420 is found in opserver
2025-03-24 02:17:10,305 - DEBUG - Do not have enough data to verify VN in agent
2025-03-24 02:17:10,310 - DEBUG - VRF ids for VN ctest-vn-18381420: {}
2025-03-24 02:17:10,310 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-24 02:17:10,315 - DEBUG - Requesting: http://10.0.0.27:8082/domain/79b30645-0539-4daf-9ae9-b83a3811325a
2025-03-24 02:17:10,326 - DEBUG - Requesting: http://10.0.0.27:8082/project/d89c42b3-4cf8-47a0-a418-c883cfaec319
2025-03-24 02:17:10,395 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/080badc1-c53c-4a7f-af7c-c78695f0dc81
2025-03-24 02:17:10,405 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/080badc1-c53c-4a7f-af7c-c78695f0dc81
2025-03-24 02:17:10,415 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/dc59fb23-0408-4aef-bcfb-62c66d702920
2025-03-24 02:17:10,422 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/dc59fb23-0408-4aef-bcfb-62c66d702920
2025-03-24 02:17:10,428 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/9d5a03cf-2718-41a7-9fb0-09cf7dcc0e81
2025-03-24 02:17:10,435 - DEBUG - Route Targets: ['target:64512:8000006']
2025-03-24 02:17:10,435 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/080badc1-c53c-4a7f-af7c-c78695f0dc81
2025-03-24 02:17:10,441 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/dc59fb23-0408-4aef-bcfb-62c66d702920
2025-03-24 02:17:10,452 - INFO - Verified VN network id 9 for VN 080badc1-c53c-4a7f-af7c-c78695f0dc81
2025-03-24 02:17:10,452 - INFO - Verifications in API Server for VN ctest-vn-76211346 passed
2025-03-24 02:17:10,452 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/080badc1-c53c-4a7f-af7c-c78695f0dc81
2025-03-24 02:17:10,459 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/dc59fb23-0408-4aef-bcfb-62c66d702920
2025-03-24 02:17:10,465 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/dc59fb23-0408-4aef-bcfb-62c66d702920
2025-03-24 02:17:10,471 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/9d5a03cf-2718-41a7-9fb0-09cf7dcc0e81
2025-03-24 02:17:10,482 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02132115:ctest-vn-76211346', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02132115', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '579748024796596863', 'uuid-lslong': '12645201234604645505'}, 'enable': 'true', 'created': '2025-03-24T02:17:08', 'last-modified': '2025-03-24T02:17:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.298019'}
2025-03-24 02:17:10,489 - DEBUG - Route Targets: ['target:64512:8000006']
2025-03-24 02:17:10,490 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76211346 passed
2025-03-24 02:17:10,490 - DEBUG - ====Verifying policy data for ctest-vn-76211346 in API_Server ======
2025-03-24 02:17:10,490 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-24 02:17:10,495 - DEBUG - Requesting: http://10.0.0.27:8082/domain/79b30645-0539-4daf-9ae9-b83a3811325a
2025-03-24 02:17:10,505 - DEBUG - Requesting: http://10.0.0.27:8082/project/d89c42b3-4cf8-47a0-a418-c883cfaec319
2025-03-24 02:17:10,572 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/080badc1-c53c-4a7f-af7c-c78695f0dc81
2025-03-24 02:17:10,579 - DEBUG - ==>Verifying data for policy with id: d3ec613e-d79d-4c01-9fee-c904f90cb90a, fqn: ['default-domain', 'ctest-TestBasicPolicy-02132115', 'ctest-policy-allow-all-86759143']
2025-03-24 02:17:10,579 - INFO - VN ctest-vn-76211346 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-24 02:17:10,580 - DEBUG - Verifying the vn in opserver
2025-03-24 02:17:10,580 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02132115:ctest-vn-76211346 virtual network link through opserver 10.0.0.27
2025-03-24 02:17:10,580 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-03-24 02:17:10,590 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02132115:ctest-vn-76211346', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02132115:ctest-vn-76211346?flat'}
2025-03-24 02:17:10,590 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02132115:ctest-vn-76211346 is found in opserver
2025-03-24 02:17:10,600 - DEBUG - Do not have enough data to verify VN in agent
2025-03-24 02:17:10,606 - DEBUG - VRF ids for VN ctest-vn-76211346: {}
2025-03-24 02:17:10,656 - DEBUG - Services list from nova: [