2024-09-04 14:02:41,936 - INFO - Domain Default found not creating
2024-09-04 14:02:42,101 - INFO - Project ctest-TestBasicPolicy-03243151 not found, creating it
2024-09-04 14:02:42,563 - INFO - Created Project:ctest-TestBasicPolicy-03243151, ID : 678c035d-9026-4a47-b77e-88d7ee4a3d88
2024-09-04 14:02:44,045 - INFO - ================================================================================
2024-09-04 14:02:44,045 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-04 14:02:44,045 - 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-09-04 14:02:44,301 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.11': '0'}} with
2024-09-04 14:02:44,301 - INFO - Initial checks done. Running the testcase now
2024-09-04 14:02:44,302 - INFO -
2024-09-04 14:02:44,847 - DEBUG - Response for create_network : {'network': {'id': '2f67cda8-2765-4ca9-8a12-e1d3b73e0a95', 'name': 'ctest-vn-20026867', 'tenant_id': '678c035d90264a47b77e88d7ee4a3d88', 'project_id': '678c035d90264a47b77e88d7ee4a3d88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03243151', 'ctest-vn-20026867'], 'port_security_enabled': True, 'description': ''}}
2024-09-04 14:02:45,014 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de6cea15-b93b-40dd-9de4-3d0e18cf331d', 'name': '', 'tenant_id': '678c035d90264a47b77e88d7ee4a3d88', 'network_id': '2f67cda8-2765-4ca9-8a12-e1d3b73e0a95', 'ip_version': 4, 'cidr': '99.112.136.192/26', 'allocation_pools': [{'start': '99.112.136.194', 'end': '99.112.136.254'}], 'gateway_ip': '99.112.136.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.112.136.194', 'tags': [], 'project_id': '678c035d90264a47b77e88d7ee4a3d88'}}
2024-09-04 14:02:45,034 - INFO - Created VN ctest-vn-20026867
2024-09-04 14:02:45,088 - DEBUG - VN ctest-vn-20026867 UUID is 2f67cda8-2765-4ca9-8a12-e1d3b73e0a95
2024-09-04 14:02:45,366 - DEBUG - Response for create_network : {'network': {'id': '34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc', 'name': 'ctest-vn-23150195', 'tenant_id': '678c035d90264a47b77e88d7ee4a3d88', 'project_id': '678c035d90264a47b77e88d7ee4a3d88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03243151', 'ctest-vn-23150195'], 'port_security_enabled': True, 'description': ''}}
2024-09-04 14:02:45,564 - DEBUG - Response for create_subnet : {'subnet': {'id': '017289bd-be58-4146-9e4b-c0f4867528ee', 'name': '', 'tenant_id': '678c035d90264a47b77e88d7ee4a3d88', 'network_id': '34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc', 'ip_version': 4, 'cidr': '153.230.72.192/26', 'allocation_pools': [{'start': '153.230.72.194', 'end': '153.230.72.254'}], 'gateway_ip': '153.230.72.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.230.72.194', 'tags': [], 'project_id': '678c035d90264a47b77e88d7ee4a3d88'}}
2024-09-04 14:02:45,584 - INFO - Created VN ctest-vn-23150195
2024-09-04 14:02:45,635 - DEBUG - VN ctest-vn-23150195 UUID is 34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc
2024-09-04 14:02:45,756 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-20026867, 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-03243151:ctest-vn-23150195, 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-09-04 14:02:46,046 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f67cda8-2765-4ca9-8a12-e1d3b73e0a95', 'name': 'ctest-vn-20026867', 'tenant_id': '678c035d90264a47b77e88d7ee4a3d88', 'project_id': '678c035d90264a47b77e88d7ee4a3d88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['de6cea15-b93b-40dd-9de4-3d0e18cf331d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03243151', 'ctest-vn-20026867'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03243151', 'ctest-policy-allow-all-35574233']], 'subnet_ipam': [{'subnet_cidr': '99.112.136.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-04 14:02:46,273 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc', 'name': 'ctest-vn-23150195', 'tenant_id': '678c035d90264a47b77e88d7ee4a3d88', 'project_id': '678c035d90264a47b77e88d7ee4a3d88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['017289bd-be58-4146-9e4b-c0f4867528ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03243151', 'ctest-vn-23150195'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03243151', 'ctest-policy-allow-all-35574233']], 'subnet_ipam': [{'subnet_cidr': '153.230.72.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-04 14:02:46,415 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-09-04 14:02:46,716 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-09-04 14:02:46,747 - DEBUG - Requesting: http://10.0.0.31:8082/domain/0323b267-cd5d-42d2-8e76-7760f614ac7b
2024-09-04 14:02:46,760 - DEBUG - Requesting: http://10.0.0.31:8082/project/678c035d-9026-4a47-b77e-88d7ee4a3d88
2024-09-04 14:02:46,833 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2f67cda8-2765-4ca9-8a12-e1d3b73e0a95
2024-09-04 14:02:46,843 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2f67cda8-2765-4ca9-8a12-e1d3b73e0a95
2024-09-04 14:02:46,851 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b96c2c72-95d8-49da-8b8d-d9d7d4696936
2024-09-04 14:02:46,858 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b96c2c72-95d8-49da-8b8d-d9d7d4696936
2024-09-04 14:02:46,865 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/59f8eb37-fa18-4fb4-a414-a192a68af1fc
2024-09-04 14:02:46,871 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-04 14:02:46,871 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2f67cda8-2765-4ca9-8a12-e1d3b73e0a95
2024-09-04 14:02:46,879 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b96c2c72-95d8-49da-8b8d-d9d7d4696936
2024-09-04 14:02:46,893 - INFO - Verified VN network id 9 for VN 2f67cda8-2765-4ca9-8a12-e1d3b73e0a95
2024-09-04 14:02:46,893 - INFO - Verifications in API Server for VN ctest-vn-20026867 passed
2024-09-04 14:02:46,893 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2f67cda8-2765-4ca9-8a12-e1d3b73e0a95
2024-09-04 14:02:46,901 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b96c2c72-95d8-49da-8b8d-d9d7d4696936
2024-09-04 14:02:46,908 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b96c2c72-95d8-49da-8b8d-d9d7d4696936
2024-09-04 14:02:46,915 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/59f8eb37-fa18-4fb4-a414-a192a68af1fc
2024-09-04 14:02:46,927 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-20026867', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03243151', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3415924964482960553', 'uuid-lslong': '9949262826243492501'}, 'enable': 'true', 'created': '2024-09-04T14:02:44', 'last-modified': '2024-09-04T14:02:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.901542'}
2024-09-04 14:02:46,934 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-04 14:02:46,934 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20026867 passed
2024-09-04 14:02:46,934 - DEBUG - ====Verifying policy data for ctest-vn-20026867 in API_Server ======
2024-09-04 14:02:46,934 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-09-04 14:02:46,941 - DEBUG - Requesting: http://10.0.0.31:8082/domain/0323b267-cd5d-42d2-8e76-7760f614ac7b
2024-09-04 14:02:46,954 - DEBUG - Requesting: http://10.0.0.31:8082/project/678c035d-9026-4a47-b77e-88d7ee4a3d88
2024-09-04 14:02:47,023 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2f67cda8-2765-4ca9-8a12-e1d3b73e0a95
2024-09-04 14:02:47,031 - DEBUG - ==>Verifying data for policy with id: 3821f5ad-0409-4c3a-bd45-f91a6b0aaef0, fqn: ['default-domain', 'ctest-TestBasicPolicy-03243151', 'ctest-policy-allow-all-35574233']
2024-09-04 14:02:47,031 - INFO - VN ctest-vn-20026867 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-04 14:02:47,031 - DEBUG - Verifying the vn in opserver
2024-09-04 14:02:47,031 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-20026867 virtual network link through opserver 10.0.0.31
2024-09-04 14:02:47,031 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-09-04 14:02:47,322 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-09-04 14:02:47,383 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-20026867', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-20026867?flat'}
2024-09-04 14:02:47,383 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-20026867 is found in opserver
2024-09-04 14:02:47,396 - DEBUG - Do not have enough data to verify VN in agent
2024-09-04 14:02:47,401 - DEBUG - VRF ids for VN ctest-vn-20026867: {}
2024-09-04 14:02:47,401 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-09-04 14:02:47,408 - DEBUG - Requesting: http://10.0.0.31:8082/domain/0323b267-cd5d-42d2-8e76-7760f614ac7b
2024-09-04 14:02:47,422 - DEBUG - Requesting: http://10.0.0.31:8082/project/678c035d-9026-4a47-b77e-88d7ee4a3d88
2024-09-04 14:02:47,494 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc
2024-09-04 14:02:47,508 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc
2024-09-04 14:02:47,518 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/69be08d9-fa83-439f-89d1-bc28cd9a7751
2024-09-04 14:02:47,528 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/69be08d9-fa83-439f-89d1-bc28cd9a7751
2024-09-04 14:02:47,536 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/8027ada5-1c52-4dcd-96da-407d39ba5896
2024-09-04 14:02:47,543 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-04 14:02:47,543 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc
2024-09-04 14:02:47,551 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/69be08d9-fa83-439f-89d1-bc28cd9a7751
2024-09-04 14:02:47,563 - INFO - Verified VN network id 10 for VN 34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc
2024-09-04 14:02:47,564 - INFO - Verifications in API Server for VN ctest-vn-23150195 passed
2024-09-04 14:02:47,564 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc
2024-09-04 14:02:47,572 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/69be08d9-fa83-439f-89d1-bc28cd9a7751
2024-09-04 14:02:47,579 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/69be08d9-fa83-439f-89d1-bc28cd9a7751
2024-09-04 14:02:47,586 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/8027ada5-1c52-4dcd-96da-407d39ba5896
2024-09-04 14:02:47,600 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-23150195', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03243151', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3806002131687918608', 'uuid-lslong': '13824655763666357948'}, 'enable': 'true', 'created': '2024-09-04T14:02:45', 'last-modified': '2024-09-04T14:02:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.347029'}
2024-09-04 14:02:47,606 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-04 14:02:47,606 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23150195 passed
2024-09-04 14:02:47,606 - DEBUG - ====Verifying policy data for ctest-vn-23150195 in API_Server ======
2024-09-04 14:02:47,606 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-09-04 14:02:47,612 - DEBUG - Requesting: http://10.0.0.31:8082/domain/0323b267-cd5d-42d2-8e76-7760f614ac7b
2024-09-04 14:02:47,624 - DEBUG - Requesting: http://10.0.0.31:8082/project/678c035d-9026-4a47-b77e-88d7ee4a3d88
2024-09-04 14:02:47,694 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc
2024-09-04 14:02:47,703 - DEBUG - ==>Verifying data for policy with id: 3821f5ad-0409-4c3a-bd45-f91a6b0aaef0, fqn: ['default-domain', 'ctest-TestBasicPolicy-03243151', 'ctest-policy-allow-all-35574233']
2024-09-04 14:02:47,703 - INFO - VN ctest-vn-23150195 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-04 14:02:47,703 - DEBUG - Verifying the vn in opserver
2024-09-04 14:02:47,703 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-23150195 virtual network link through opserver 10.0.0.31
2024-09-04 14:02:47,703 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-09-04 14:02:47,714 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-23150195', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-23150195?flat'}
2024-09-04 14:02:47,714 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-23150195 is found in opserver
2024-09-04 14:02:47,726 - DEBUG - Do not have enough data to verify VN in agent
2024-09-04 14:02:47,731 - DEBUG - VRF ids for VN ctest-vn-23150195: {}
2024-09-04 14:02:47,788 - DEBUG - Services list from nova: [