2024-11-08 17:17:33,637 - INFO - Domain Default found not creating
2024-11-08 17:17:33,860 - INFO - Project ctest-TestBasicPolicy-87986545 not found, creating it
2024-11-08 17:17:34,661 - INFO - Created Project:ctest-TestBasicPolicy-87986545, ID : 84db3b3b-d324-4952-9c55-feb3b406fe83
2024-11-08 17:17:36,272 - INFO - ================================================================================
2024-11-08 17:17:36,273 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-08 17:17:36,273 - 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
2024-11-08 17:17:36,529 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.6': '0'}} with
2024-11-08 17:17:36,529 - INFO - Initial checks done. Running the testcase now
2024-11-08 17:17:36,529 - INFO -
2024-11-08 17:17:37,125 - DEBUG - Response for create_network : {'network': {'id': '2e8083b4-284b-4ae9-87f0-ef73dbf1b244', 'name': 'ctest-vn-02610715', 'tenant_id': '84db3b3bd32449529c55feb3b406fe83', 'project_id': '84db3b3bd32449529c55feb3b406fe83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87986545', 'ctest-vn-02610715'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 17:17:37,286 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed04ff3f-0501-4941-9939-7f52ae6a3068', 'name': '', 'tenant_id': '84db3b3bd32449529c55feb3b406fe83', 'network_id': '2e8083b4-284b-4ae9-87f0-ef73dbf1b244', 'ip_version': 4, 'cidr': '137.61.116.128/26', 'allocation_pools': [{'start': '137.61.116.130', 'end': '137.61.116.190'}], 'gateway_ip': '137.61.116.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.61.116.130', 'tags': [], 'project_id': '84db3b3bd32449529c55feb3b406fe83'}}
2024-11-08 17:17:37,307 - INFO - Created VN ctest-vn-02610715
2024-11-08 17:17:37,366 - DEBUG - VN ctest-vn-02610715 UUID is 2e8083b4-284b-4ae9-87f0-ef73dbf1b244
2024-11-08 17:17:37,693 - DEBUG - Response for create_network : {'network': {'id': '72bdd99c-7220-4680-9b8d-f1f440aa2b6c', 'name': 'ctest-vn-09114437', 'tenant_id': '84db3b3bd32449529c55feb3b406fe83', 'project_id': '84db3b3bd32449529c55feb3b406fe83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87986545', 'ctest-vn-09114437'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 17:17:37,873 - DEBUG - Response for create_subnet : {'subnet': {'id': '676a1eaf-fabb-4d56-b65a-bd4967ee84f8', 'name': '', 'tenant_id': '84db3b3bd32449529c55feb3b406fe83', 'network_id': '72bdd99c-7220-4680-9b8d-f1f440aa2b6c', 'ip_version': 4, 'cidr': '179.230.97.192/26', 'allocation_pools': [{'start': '179.230.97.194', 'end': '179.230.97.254'}], 'gateway_ip': '179.230.97.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.230.97.194', 'tags': [], 'project_id': '84db3b3bd32449529c55feb3b406fe83'}}
2024-11-08 17:17:37,896 - INFO - Created VN ctest-vn-09114437
2024-11-08 17:17:37,954 - DEBUG - VN ctest-vn-09114437 UUID is 72bdd99c-7220-4680-9b8d-f1f440aa2b6c
2024-11-08 17:17:38,078 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-02610715, 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-87986545:ctest-vn-09114437, 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]
2024-11-08 17:17:38,406 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e8083b4-284b-4ae9-87f0-ef73dbf1b244', 'name': 'ctest-vn-02610715', 'tenant_id': '84db3b3bd32449529c55feb3b406fe83', 'project_id': '84db3b3bd32449529c55feb3b406fe83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ed04ff3f-0501-4941-9939-7f52ae6a3068'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87986545', 'ctest-vn-02610715'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87986545', 'ctest-policy-allow-all-69738892']], 'subnet_ipam': [{'subnet_cidr': '137.61.116.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 17:17:38,670 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '72bdd99c-7220-4680-9b8d-f1f440aa2b6c', 'name': 'ctest-vn-09114437', 'tenant_id': '84db3b3bd32449529c55feb3b406fe83', 'project_id': '84db3b3bd32449529c55feb3b406fe83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['676a1eaf-fabb-4d56-b65a-bd4967ee84f8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87986545', 'ctest-vn-09114437'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87986545', 'ctest-policy-allow-all-69738892']], 'subnet_ipam': [{'subnet_cidr': '179.230.97.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 17:17:38,878 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-11-08 17:17:39,185 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-11-08 17:17:39,519 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ad0805ff-b490-4f2b-9ecc-28d42db931db
2024-11-08 17:17:39,541 - DEBUG - Requesting: http://10.0.0.27:8082/project/84db3b3b-d324-4952-9c55-feb3b406fe83
2024-11-08 17:17:39,644 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2e8083b4-284b-4ae9-87f0-ef73dbf1b244
2024-11-08 17:17:39,661 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2e8083b4-284b-4ae9-87f0-ef73dbf1b244
2024-11-08 17:17:39,678 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/09421807-0473-422a-8c05-000759869792
2024-11-08 17:17:39,689 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/09421807-0473-422a-8c05-000759869792
2024-11-08 17:17:39,699 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/471f02a7-93c3-4075-9e76-6758c20de650
2024-11-08 17:17:39,708 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 17:17:39,708 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2e8083b4-284b-4ae9-87f0-ef73dbf1b244
2024-11-08 17:17:39,725 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/09421807-0473-422a-8c05-000759869792
2024-11-08 17:17:39,752 - INFO - Verified VN network id 8 for VN 2e8083b4-284b-4ae9-87f0-ef73dbf1b244
2024-11-08 17:17:39,752 - INFO - Verifications in API Server for VN ctest-vn-02610715 passed
2024-11-08 17:17:39,752 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2e8083b4-284b-4ae9-87f0-ef73dbf1b244
2024-11-08 17:17:39,767 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/09421807-0473-422a-8c05-000759869792
2024-11-08 17:17:39,779 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/09421807-0473-422a-8c05-000759869792
2024-11-08 17:17:39,797 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/471f02a7-93c3-4075-9e76-6758c20de650
2024-11-08 17:17:39,815 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-02610715', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87986545', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3350822932557023977', 'uuid-lslong': '9795592470421156420'}, 'enable': 'true', 'created': '2024-11-08T17:17:37', 'last-modified': '2024-11-08T17:17:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.440936'}
2024-11-08 17:17:39,823 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 17:17:39,824 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02610715 passed
2024-11-08 17:17:39,824 - DEBUG - ====Verifying policy data for ctest-vn-02610715 in API_Server ======
2024-11-08 17:17:39,824 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-11-08 17:17:39,833 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ad0805ff-b490-4f2b-9ecc-28d42db931db
2024-11-08 17:17:39,849 - DEBUG - Requesting: http://10.0.0.27:8082/project/84db3b3b-d324-4952-9c55-feb3b406fe83
2024-11-08 17:17:39,936 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2e8083b4-284b-4ae9-87f0-ef73dbf1b244
2024-11-08 17:17:39,955 - DEBUG - ==>Verifying data for policy with id: 2c1d7087-bcfa-41e4-9384-80dff311a8b0, fqn: ['default-domain', 'ctest-TestBasicPolicy-87986545', 'ctest-policy-allow-all-69738892']
2024-11-08 17:17:39,955 - INFO - VN ctest-vn-02610715 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 17:17:39,955 - DEBUG - Verifying the vn in opserver
2024-11-08 17:17:39,955 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-02610715 virtual network link through opserver 10.0.0.27
2024-11-08 17:17:39,955 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-11-08 17:17:40,266 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-11-08 17:17:40,348 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-02610715', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-02610715?flat'}
2024-11-08 17:17:40,348 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-02610715 is found in opserver
2024-11-08 17:17:40,365 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 17:17:40,373 - DEBUG - VRF ids for VN ctest-vn-02610715: {}
2024-11-08 17:17:40,373 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-11-08 17:17:40,381 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ad0805ff-b490-4f2b-9ecc-28d42db931db
2024-11-08 17:17:40,394 - DEBUG - Requesting: http://10.0.0.27:8082/project/84db3b3b-d324-4952-9c55-feb3b406fe83
2024-11-08 17:17:40,480 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/72bdd99c-7220-4680-9b8d-f1f440aa2b6c
2024-11-08 17:17:40,496 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/72bdd99c-7220-4680-9b8d-f1f440aa2b6c
2024-11-08 17:17:40,513 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4eb858e4-76f5-42ab-9eef-286ec56c8859
2024-11-08 17:17:40,522 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4eb858e4-76f5-42ab-9eef-286ec56c8859
2024-11-08 17:17:40,532 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/3c8c81db-89bc-428a-b0f5-f73240ea399c
2024-11-08 17:17:40,541 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 17:17:40,541 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/72bdd99c-7220-4680-9b8d-f1f440aa2b6c
2024-11-08 17:17:40,555 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4eb858e4-76f5-42ab-9eef-286ec56c8859
2024-11-08 17:17:40,579 - INFO - Verified VN network id 9 for VN 72bdd99c-7220-4680-9b8d-f1f440aa2b6c
2024-11-08 17:17:40,579 - INFO - Verifications in API Server for VN ctest-vn-09114437 passed
2024-11-08 17:17:40,579 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/72bdd99c-7220-4680-9b8d-f1f440aa2b6c
2024-11-08 17:17:40,595 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4eb858e4-76f5-42ab-9eef-286ec56c8859
2024-11-08 17:17:40,608 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4eb858e4-76f5-42ab-9eef-286ec56c8859
2024-11-08 17:17:40,618 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/3c8c81db-89bc-428a-b0f5-f73240ea399c
2024-11-08 17:17:40,633 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-09114437', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87986545', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8268003756874942080', 'uuid-lslong': '11208881078954240876'}, 'enable': 'true', 'created': '2024-11-08T17:17:37', 'last-modified': '2024-11-08T17:17:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.990218'}
2024-11-08 17:17:40,639 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 17:17:40,639 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09114437 passed
2024-11-08 17:17:40,640 - DEBUG - ====Verifying policy data for ctest-vn-09114437 in API_Server ======
2024-11-08 17:17:40,640 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-11-08 17:17:40,646 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ad0805ff-b490-4f2b-9ecc-28d42db931db
2024-11-08 17:17:40,660 - DEBUG - Requesting: http://10.0.0.27:8082/project/84db3b3b-d324-4952-9c55-feb3b406fe83
2024-11-08 17:17:40,740 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/72bdd99c-7220-4680-9b8d-f1f440aa2b6c
2024-11-08 17:17:40,756 - DEBUG - ==>Verifying data for policy with id: 2c1d7087-bcfa-41e4-9384-80dff311a8b0, fqn: ['default-domain', 'ctest-TestBasicPolicy-87986545', 'ctest-policy-allow-all-69738892']
2024-11-08 17:17:40,756 - INFO - VN ctest-vn-09114437 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 17:17:40,756 - DEBUG - Verifying the vn in opserver
2024-11-08 17:17:40,756 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-09114437 virtual network link through opserver 10.0.0.27
2024-11-08 17:17:40,756 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-11-08 17:17:40,771 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-09114437', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-09114437?flat'}
2024-11-08 17:17:40,771 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-09114437 is found in opserver
2024-11-08 17:17:40,783 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 17:17:40,789 - DEBUG - VRF ids for VN ctest-vn-09114437: {}
2024-11-08 17:17:40,851 - DEBUG - Services list from nova: [